แก้ไข

แชร์ผ่าน


Localization.GetComments(Object) Method

Definition

Gets the value of the CommentsProperty attached property from a specified element.

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

Parameters

element
Object

A Object that represents the element whose attached property you want to retrieve.

Returns

A String value that represents the localization comment.

Attributes

Examples

The following code example shows how to retrieve the localization comments defined for a text block.

Remarks

Localization comments are free-form text that the application developer includes.

Applies to

See also