TextSearch.SetText(DependencyObject, String) 方法

定义

Text 附加属性值写入指定元素。

public:
 static void SetText(System::Windows::DependencyObject ^ element, System::String ^ text);
public static void SetText (System.Windows.DependencyObject element, string text);
static member SetText : System.Windows.DependencyObject * string -> unit
Public Shared Sub SetText (element As DependencyObject, text As String)

参数

element
DependencyObject

要写入属性值的元素。

text
String

用于标识项的字符串。

适用于