IEditorSettings.AutoFormatCode 屬性

適用於版本2

取得或設定是否自動格式化所輸入的程式碼。

命名空間:  Microsoft.WebMatrix.Extensibility.Editor
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Property AutoFormatCode As Boolean 
    Get 
    Set
'用途
Dim instance As IEditorSettings 
Dim value As Boolean 

value = instance.AutoFormatCode

instance.AutoFormatCode = value
bool AutoFormatCode { get; set; }
property bool AutoFormatCode {
    bool get ();
    void set (bool value);
}
abstract AutoFormatCode : bool with get, set
function get AutoFormatCode () : boolean 
function set AutoFormatCode (value : boolean)

屬性值

型別:System.Boolean
true 表示自動格式化所輸入的程式碼,否則為 false。

請參閱

參考

IEditorSettings 介面

Microsoft.WebMatrix.Extensibility.Editor 命名空間