語言

TextSearch.GetText(DependencyObject) 方法

定義

回傳識別指定項目的字串。

public:
 static System::String ^ GetText(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static string GetText(System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetText : System.Windows.DependencyObject -> string
Public Shared Function GetText (element As DependencyObject) As String

參數

element
DependencyObject

讀取屬性值的元素。

傳回

識別指定項目的字串。

屬性

備註

此方法會回傳指定元素附加屬性的值 Text 。

適用於