共用方式為


NewLineCharacter Class

Definition

The option definition that specifies the newline character or characters.

public ref class NewLineCharacter sealed : Microsoft::VisualStudio::Text::Editor::EditorOptionDefinition<System::String ^>
public ref class NewLineCharacter sealed : Microsoft::VisualStudio::Text::Editor::EditorOptionDefinition<Platform::String ^>
class NewLineCharacter sealed : Microsoft::VisualStudio::Text::Editor::EditorOptionDefinition<std::wstring>
[Microsoft.VisualStudio.Utilities.Name("NewLineCharacter")]
[System.ComponentModel.Composition.Export(typeof(Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition))]
public sealed class NewLineCharacter : Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition<string>
[<Microsoft.VisualStudio.Utilities.Name("NewLineCharacter")>]
[<System.ComponentModel.Composition.Export(typeof(Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition))>]
type NewLineCharacter = class
    inherit EditorOptionDefinition<string>
Public NotInheritable Class NewLineCharacter
Inherits EditorOptionDefinition(Of String)
Inheritance
Attributes

Constructors

NewLineCharacter()

Initializes a new instance of NewLineCharacter.

Properties

Default

Gets the default value ("\r\n").

DefaultValue

Gets the default value of the option.

(Inherited from EditorOptionDefinition<T>)
Key

Gets the editor option key.

Name

Gets the name of the option.

(Inherited from EditorOptionDefinition<T>)
ValueType

Gets the actual type of the option.

(Inherited from EditorOptionDefinition<T>)

Methods

Equals(Object)

Determines whether two EditorOptionDefinition objects are the same.

(Inherited from EditorOptionDefinition)
GetHashCode()

Gets the hash code of this type.

(Inherited from EditorOptionDefinition)
IsApplicableToScope(IPropertyOwner)

Determines whether this option is applicable for the given scope (for example, a text buffer). The default implementation returns true. An option, by default, is applicable to any scope.

(Inherited from EditorOptionDefinition)
IsValid(Object)

Determines whether the proposed value is valid.

(Inherited from EditorOptionDefinition<T>)
IsValid(T)

Determines whether the proposed value is valid.

(Inherited from EditorOptionDefinition<T>)

Applies to