共用方式為


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 安全性

請參閱

參考

EditorFormatDefinition 類別

Microsoft.VisualStudio.Text.Classification 命名空間