Xml.XMLIntf.IXMLNode.Text
Delphi
property Text: DOMString read GetText write SetText;
C++
__property System::UnicodeString Text = {read=GetText, write=SetText};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | public | Xml.XMLIntf.pas Xml.XMLIntf.hpp |
Xml.XMLIntf | IXMLNode |
説明
ノードの Text を表します。
Text プロパティはノードのテキストを表します。たとえば,次のノードの場合,
<Title> Understanding XML </Title>
ノードのテキストは文字列「Understanding XML」です。
Text プロパティは,IsTextElement プロパティが true のノードで使用されます。IsTextElement プロパティが false の場合は,次のようになります。
ノードが子を持っていない場合,Text プロパティの値は空の文字列になる。この場合は,Text プロパティを設定すると,IsTextElement プロパティが true のノードになる。
ノードが 1 つの DOM テキストノード以外に子を持っていれば,Text プロパティを読み出したり設定すると例外が発生する。