AvalonEdit
InsertionContext Class
NamespacesICSharpCode.AvalonEdit.SnippetsInsertionContext
Represents the context of a snippet insertion.
Declaration Syntax
C#Visual BasicVisual C++
public class InsertionContext : IWeakEventListener
Public Class InsertionContext _
	Implements IWeakEventListener
public ref class InsertionContext : IWeakEventListener
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
InsertionContext(TextArea, Int32)
Creates a new InsertionContext instance.

ActiveElements
Gets the list of active elements.

Deactivate(SnippetEventArgs)
Calls the Deactivate(SnippetEventArgs) method on all registered active elements.

Deactivated
Occurs when the interactive mode is deactivated.

Document
Gets the text document.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetActiveElement(SnippetElement)
Returns the active element belonging to the specified snippet element, or null if no such active element is found.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Indentation
Gets the indentation at the insertion position.

InsertionCompleted
Occurs when the all snippet elements have been inserted.

InsertionPosition
Gets/Sets the insertion position.

InsertText(String)
Inserts text at the insertion position and advances the insertion position. This method will add the current indentation to every line in text and will replace newlines with the expected newline for the document.

LineTerminator
Gets the line terminator at the insertion position.

Link(ISegment, array<ISegment>[]()[][])
Adds existing segments as snippet elements.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
RaiseInsertionCompleted(EventArgs)
Calls the OnInsertionCompleted()()()() method on all registered active elements and raises the InsertionCompleted event.

ReceiveWeakEvent(Type, Object, EventArgs)
Receives events from the centralized event manager.

RegisterActiveElement(SnippetElement, IActiveElement)
Registers an active element. Elements should be registered during insertion and will be called back when insertion has completed.

SelectedText
Gets the text that was selected before the insertion of the snippet.

StartPosition
Gets the start position of the snippet insertion.

Tab
Gets the indentation string for a single indentation level.

TextArea
Gets the text area.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
InsertionContext

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238