Localization::GetComments Method (Object^)

 

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

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
[AttachedPropertyBrowsableForTypeAttribute((Object^::typeid))]
static String^ GetComments(
	Object^ element
)

Parameters

element
Type: System::Object^

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

Return Value

Type: System::String^

A String value that represents the localization comment.

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

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

.NET Framework
Available since 3.0
Return to top
Show: