TextBox.ShouldSerializeText(XamlDesignerSerializationManager) 方法

定義

傳回值,這個值表示 Text 屬性的有效值是否應該在 TextBox 物件的序列化期間予以序列化。Returns a value that indicates whether the effective value of the Text property should be serialized during serialization of the TextBox object.

public:
 bool ShouldSerializeText(System::Windows::Markup::XamlDesignerSerializationManager ^ manager);
public bool ShouldSerializeText (System.Windows.Markup.XamlDesignerSerializationManager manager);
member this.ShouldSerializeText : System.Windows.Markup.XamlDesignerSerializationManager -> bool
Public Function ShouldSerializeText (manager As XamlDesignerSerializationManager) As Boolean

參數

manager
XamlDesignerSerializationManager

這個物件的序列化服務管理員物件。A serialization service manager object for this object.

傳回

如果 Text 屬性應進行序列化則為 true,否則為 falsetrue if the Text property should be serialized; otherwise, false.

例外狀況

managernullmanager is null.

適用於