Provides a JavaScript
language indent provider service.
- Inheritance:
-
object
Delimiter
Indent objectProvider
- Implements:
-
IIndent
Provider IEditorDocument Text Change Event Sink
Constructors
JavaScriptIndentProvider()
Initializes a new instance of the JavaScriptIndentProvider
class.
Properties
Mode
Gets the Indent
Property Value
- Indent
Mode : The Indent
Mode that specifies the mode by which to indent text.
Methods
GetIndentAmount(TextSnapshotOffset, int)
Returns the ideal amount of indent, always in columns, for the line containing the snapshot offset.
Parameter | Type | Description |
---|---|---|
snapshotOffset | Text |
The Text |
defaultAmount | int | The default indent amount, which is the amount used in |
Returns
- int:
The ideal amount of indent, always in columns, for the line containing the snapshot offset.
Remarks
This method is called when the IndentSmart
.
The containing IText
OnDocumentTextChanged(SyntaxEditor, EditorSnapshotChangedEventArgs)
Occurs after a text change occurs to an IEditor
Parameter | Type | Description |
---|---|---|
editor | Syntax |
The Syntax |
e | Editor |
The |
OnDocumentTextChanging(SyntaxEditor, EditorSnapshotChangingEventArgs)
Occurs before a text change occurs to an IEditor
Parameter | Type | Description |
---|---|---|
editor | Syntax |
The Syntax |
e | Editor |
The |
Inherited Members
-
Delimiter
Indent Provider. Is Valid End Delimiter(IToken, char) -
Delimiter
Indent Provider. Is Valid Start Delimiter(IToken, char) -
Delimiter
Indent Provider. Can Auto Indent Curly Braces -
Delimiter
Indent Provider. Can Auto Indent Square Braces -
Delimiter
Indent Provider. Close Curly Brace Token Id -
Delimiter
Indent Provider. Close Delimiter Indent Level -
Delimiter
Indent Provider. Close Square Brace Token Id -
Delimiter
Indent Provider. Open Curly Brace Token Id -
Delimiter
Indent Provider. Open Square Brace Token Id -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()