AvalonEdit
RectangleSelection Class
NamespacesICSharpCode.AvalonEdit.EditingRectangleSelection
Rectangular selection ("box selection").
Declaration Syntax
C#Visual BasicVisual C++
public sealed class RectangleSelection : Selection
Public NotInheritable Class RectangleSelection _
	Inherits Selection
public ref class RectangleSelection sealed : public Selection
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
RectangleSelection(TextArea, TextViewPosition, TextViewPosition)
Creates a new rectangular selection.

BoxSelectDownByLine
Expands the selection up by one line, creating a rectangular selection. Key gesture: Alt+Shift+Down

BoxSelectLeftByCharacter
Expands the selection left by one character, creating a rectangular selection. Key gesture: Alt+Shift+Left

BoxSelectLeftByWord
Expands the selection left by one word, creating a rectangular selection. Key gesture: Ctrl+Alt+Shift+Left

BoxSelectRightByCharacter
Expands the selection right by one character, creating a rectangular selection. Key gesture: Alt+Shift+Right

BoxSelectRightByWord
Expands the selection left by one word, creating a rectangular selection. Key gesture: Ctrl+Alt+Shift+Right

BoxSelectToLineEnd
Expands the selection to the end of the line, creating a rectangular selection. Key gesture: Alt+Shift+End

BoxSelectToLineStart
Expands the selection to the start of the line, creating a rectangular selection. Key gesture: Alt+Shift+Home

BoxSelectUpByLine
Expands the selection up by one line, creating a rectangular selection. Key gesture: Alt+Shift+Up

Contains(Int32)
Gets whether the specified offset is included in the selection.
(Inherited from Selection.)
CreateDataObject(TextArea)
Creates a data object containing the selection's text.
(Overrides Selection.CreateDataObject(TextArea).)
CreateHtmlFragment(HtmlOptions)
Creates a HTML fragment for the selected text.
(Inherited from Selection.)
EnableVirtualSpace
Gets whether virtual space is enabled for this selection.
(Overrides Selection.EnableVirtualSpace.)
EndPosition
Gets the end position of the selection.
(Overrides Selection.EndPosition.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides Selection.Equals(Object).)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Overrides Selection.GetHashCode()()()().)
GetText()()()()
Gets the selected text.
(Overrides Selection.GetText()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
IsEmpty
Gets whether the selection is empty.
(Inherited from Selection.)
IsMultiline
Gets whether the selection is multi-line.
(Inherited from Selection.)
Length
Gets the selection length.
(Overrides Selection.Length.)
PerformRectangularPaste(TextArea, TextViewPosition, String, Boolean)
Performs a rectangular paste operation.

RectangularSelectionDataType
Gets the name of the entry in the DataObject that signals rectangle selections.

ReplaceSelectionWithText(String)
Replaces the selection with the specified text.
(Overrides Selection.ReplaceSelectionWithText(String).)
Segments
Gets the selected text segments.
(Overrides Selection.Segments.)
SetEndpoint(TextViewPosition)
Returns a new selection with the changed end point.
(Overrides Selection.SetEndpoint(TextViewPosition).)
StartPosition
Gets the start position of the selection.
(Overrides Selection.StartPosition.)
StartSelectionOrSetEndpoint(TextViewPosition, TextViewPosition)
If this selection is empty, starts a new selection from startPosition to endPosition, otherwise, changes the endpoint of this selection.
(Overrides Selection.StartSelectionOrSetEndpoint(TextViewPosition, TextViewPosition).)
SurroundingSegment
Gets the smallest segment that contains all segments in this selection. May return null if the selection is empty.
(Overrides Selection.SurroundingSegment.)
ToString()()()()
Returns a String that represents the current Object.
(Overrides Object.ToString()()()().)
UpdateOnDocumentChange(DocumentChangeEventArgs)
Updates the selection when the document changes.
(Overrides Selection.UpdateOnDocumentChange(DocumentChangeEventArgs).)
Inheritance Hierarchy
Object
Selection
 RectangleSelection

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