Base class for selections.
            
| C# | Visual Basic | Visual C++ | 
public abstract class Selection
Public MustInherit Class Selection
public ref class Selection abstract
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description | 
|---|---|---|
| Selection(TextArea) | 
            Constructor for Selection.
              | |
| Contains(Int32) | 
            Gets whether the specified offset is included in the selection.
              | |
| Create(TextArea, Int32, Int32) | 
            Creates a new simple selection that selects the text from startOffset to endOffset.
              | |
| Create(TextArea, ISegment) | 
            Creates a new simple selection that selects the text in the specified segment.
              | |
| CreateDataObject(TextArea) | 
            Creates a data object containing the selection's text.
              | |
| CreateHtmlFragment(HtmlOptions) | 
            Creates a HTML fragment for the selected text.
              | |
| EnableVirtualSpace | 
            Gets whether virtual space is enabled for this selection.
              | |
| EndPosition | 
            Gets the end position of the selection.
              | |
| Equals(Object) |  (Overrides Object.Equals(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.) | |
| GetHashCode()()()() | Serves as a hash function for a particular type.   (Overrides Object.GetHashCode()()()().) | |
| GetText()()()() | 
            Gets the selected text.
              | |
| GetType()()()() | Gets the Type of the current instance.  (Inherited from Object.) | |
| IsEmpty | 
            Gets whether the selection is empty.
              | |
| IsMultiline | 
            Gets whether the selection is multi-line.
              | |
| Length | 
            Gets the selection length.
              | |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object.  (Inherited from Object.) | |
| ReplaceSelectionWithText(String) | 
            Replaces the selection with the specified text.
              | |
| Segments | 
            Gets the selected text segments.
              | |
| SetEndpoint(TextViewPosition) | 
            Returns a new selection with the changed end point.
              | |
| StartPosition | 
            Gets the start position of the selection.
              | |
| StartSelectionOrSetEndpoint(TextViewPosition, TextViewPosition) | 
            If this selection is empty, starts a new selection from startPosition to
            endPosition, otherwise, changes the endpoint of this selection.
              | |
| SurroundingSegment | 
            Gets the smallest segment that contains all segments in this selection.
            May return null if the selection is empty.
              | |
| ToString()()()() |  (Inherited from Object.) | |
| UpdateOnDocumentChange(DocumentChangeEventArgs) | 
            Updates the selection when the document changes.
              | 
| Object | ||
| Selection | ||
| RectangleSelection | ||
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238