ContentControl.Tag 属性

定义

返回或设置一个值,用于标识内容控件。Returns or sets a value to identify a content control. 读/写。Read/write.

public:
 property System::String ^ Tag { System::String ^ get(); void set(System::String ^ value); };
public string Tag { get; set; }
member this.Tag : string with get, set
Public Property Tag As String

属性值

String

StringString

注解

Tag属性不同于 Title 属性,因为用户在编辑文档时从不显示标记。The Tag property is different from the Title property in that a tag is never displayed while a user edits a document. 相反,开发人员可以使用它来存储编程操作的值,则在打开文档时。Instead, developers can use it to store a value for programmatic manipulation while the document is opened.

适用于