EditorFormatDefinition.DisplayName 屬性
定義在對使用者顯示此格式定義時所使用的字串。 這個屬性時,才使用UserVisibleAttribute設定為 [ true匯出這個物件上。
命名空間: Microsoft.VisualStudio.Text.Classification
組件: Microsoft.VisualStudio.Text.UI.Wpf (在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
語法
'宣告
Public Property DisplayName As String
public string DisplayName { get; protected set; }
public:
property String^ DisplayName {
String^ get ();
protected: void set (String^ value);
}
member DisplayName : string with get, set
function get DisplayName () : String
protected function set DisplayName (value : String)
屬性值
類型:String
顯示字串。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。