ContentCaptureNodeProperties.Text 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定節點的文字為字串。
public string? Text { get; set; }
member this.Text : string with get, set
屬性值
文字,或者 null 如果它明確設定為 null。
備註
這就是 的 TextFormatted字串形式。 getter 會將字元序列轉換成字串。 設定器會將一個 Java 字串,或 null,傳給該屬性。 使用格式化屬性來保留跨度。
閱讀此物業前請先確認 HasText 。 如果文字尚未被設定,則擲出者會 IllegalStateException 擲出。 將此屬性 null 設為移除當前文字,同時標記該屬性為明確設定; Clear() 移除該狀態。