获取或设置显示可视分隔线的文本。
命名空间: Microsoft.Windows.Controls.Ribbon
程序集: RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)
语法
声明
Public Property Label As String
Get
Set
public string Label { get; set; }
public:
property String^ Label {
String^ get ();
void set (String^ value);
}
member Label : string with get, set
function get Label () : String
function set Label (value : String)
属性值
类型:System.String
与可视分隔线一起显示的文本。注册的默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。有关可以影响值的因素的更多信息,请参见 依赖项属性值优先级。
依赖项属性信息
标识符字段 |
|
设置为 true 的元数据属性 |
无 |
备注
可将可选 Label 属性设置为现实文本和视觉分离器线,后者由 RibbonSeparator 显示。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。