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

要從中讀取屬性值的項目。

傳回

String

識別指定項目的字串。

屬性

備註

這個方法會從指定的專案傳回附加屬性的值 Text

適用於