Localization.SetComments Method (Object, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets the CommentsProperty attached property to the specified element.

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

Public Shared Sub SetComments (
	element As Object,
	comments As String
)

Parameters

element
Type: System.Object

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

comments
Type: System.String

A String that specifies the localization comments.

Localization comments are free-form text that the application developer includes. For more information on how to define localization comments, see Localization Attributes and Comments.

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

.NET Framework
Available since 3.0
Return to top
Show: