Table of Contents

Interface ISelection

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Contains properties and methods used to manage selected part of the Edit control's text content.

public interface ISelection : IDisposable

Properties

AllowedSelectionMode

When implemented by a class, gets or sets types of selection allowed to Edit control content.

IsEmpty

When implemented by a class, indicates whether nothing is selected.

Options

When implemented by a class, gets or sets options determining behavior or the ISelection.

SelectedColorData

When implemented by a class, gets strings that corresponds to selected part of the control's text content.

SelectedText

When implemented by a class, gets or sets strings that corresponds to selected part of the control's text content.

SelectionLength

When implemented by a class, gets or sets length of the SelectedText.

SelectionRect

When implemented by a class, gets or sets rectangular area indicating selected text of the control.

SelectionStart

When implemented by a class, gets or sets the position of the first selected character while text considered as a single string.

SelectionState

When implemented by a class, gets or sets a value indicates state of the selected text.

SelectionType

When implemented by a class, gets or sets type of current selection. SelectionType

UpdateCount

When implemented by a class, keeps track of calls to BeginUpdate and EndUpdate so that they can be nested.

Methods

ApplyTextChanges(IList<ITextUndo>, bool)

When implemented by a class, applies text changes to the text.

Assign(ISelection)

When implemented by a class, copies the contents from another ISelection object.

BeginUpdate()

When implemented by a class, prevents the ISelection updating until the EndUpdate method is called. EndUpdate()

CanCopy()

When implemented by a class, indicates whether selected text can be copied to the clipboard.

CanCut()

When implemented by a class, indicates whether selected text can be cut to the clipboard.

CanDelete()

When implemented by a class, indicates whether selected text can be deleted.

CanDrag(Point)

When implemented by a class, indicates whether the control can drag selected text.

CanPaste()

When implemented by a class, indicates whether the control can paste some text from the clipboard.

Capitalize()

When implemented by a class, changes first character of all words in selected text to upper-case and all another characters to lower-case.

ChangeBlock(StringEvent)

When implemented by a class, changes selected text by applying specified event to every line in the selected text.

ChangeBlock(StringEvent, bool, bool)

When implemented by a class, changes selected text by applying specified event to every line in the selected text.

ChangeBlock(TextUndoEvent)

When implemented by a class, changes selected text by applying specified event to every line in the selected text.

ChangeBlock(TextUndoEvent, bool, bool)

When implemented by a class, changes selected text by applying specified event to every line in the selected text.

CharTransponse()

When implemented by a class, transposes character under the caret with the next character.

Clear()

When implemented by a class, makes selection empty, without deleting its content.

CollapseToDefinitions()

When implemented by a class, collapses and expands some outline section to get a quick overall view of the Edit content.

CommentSelection()

When implemented by a class, marks the selected text as a comment, using the correct comment syntax for the programming language.

Copy()

When implemented by a class, copies SelectedText to the Clipboard.

Cut()

When implemented by a class, cuts SelectedText to the Clipboard.

CutLine()

When implemented by a class, cuts current line to the clipboard if no text is selected; otherwise cuts selected text.

Delete()

When implemented by a class, deletes selected text from the control.

Delete(ExtendedSelectionScope)

When implemented by a class, deletes selected text from the control.

DeleteLeft()

When implemented by a class, deletes one character left to the cursor.

DeleteLine()

When implemented by a class, deletes current line if no text selected; otherwise deletes selected text.

DeleteRight()

When implemented by a class, deletes one character right to the cursor.

DeleteWhiteSpace()

When implemented by a class, removes all space and tab characters from selected text. If no text selected - removes space and tab characters from current line.

DeleteWordLeft()

When implemented by a class, deletes one word left to the cursor.

DeleteWordRight()

When implemented by a class, deletes one word right to the cursor.

DragTo(Point, bool)

When implemented by a class, moves or copies selected text to the specified position.

EndSelection()

When implemented by a class, stops selection.

EndUpdate()

When implemented by a class, re-enables selection updating turned off by calling BeginUpdate method. BeginUpdate()

GetSelectionForLine(int, out int, out int)

When implemented by a class, sets left and right parameter to the first and last selected characters within specified line.

Indent()

When implemented by a class, indents the selected text by one indentation level, inserting Tab or spaces to the beginning of the line.

InsertString(string)

When implemented by a class, inserts given text to the control's content deleting selected text if needed.

Invalidate()

When implemented by a class, invalidates a selection region of the editor control and causes a paint message to be sent to the editor control.

IsPosInSelection(Point)

When implemented by a class, indicates whether given position located within the selected region.

IsPosInSelection(int, int)

When implemented by a class, indicates whether given position located within the selected region.

IsValidSelectionPoint(Point)

When implemented by a class, indicates whether specified position located at the top-left or right-bottom corners of selection area.

LineTransponse()

When implemented by a class, transposes line under the caret with the next line.

LowerCase()

When implemented by a class, converts all selected characters to the lower-case.

Modified()

When implemented by a class, responds on any modifications in the editor.

Move(Point, bool)

When implemented by a class, moves or copies selected text to the specified position.

MoveSelectionDown()

When implemented by a class, moves selected text to the following line in the control.

MoveSelectionUp()

When implemented by a class, moves selected text to the preceding line in the control.

NewLine()

When implemented by a class, inserts a line break at the current position of the control.

NewLineAbove()

When implemented by a class, inserts a line break above the current position of the control.

NewLineBelow()

When implemented by a class, inserts a line break below the current position of the control.

OnSelect(object, EventArgs)

When implemented by a class, selects part of text source settings. Reserved for internal use.

OnSelectionChanged()

When implemented by a class, raises SelectionChanged event.

Paste()

When implemented by a class, pastes the content of the Clipboard to the Edit control, replacing selected text if needed.

PositionChanged(int, int, int, int)

When implemented by a class, responds on changing position in the editor.

ProcessEscape()

When implemented by a class, processes escape pressure: method deselects selected text.

ProcessShiftTab()

When implemented by a class, moves current position to the previous tab stop if the selected text is empty; otherwise unindents selected text.

ProcessTab()

When implemented by a class, inserts new tab character or spaces if the selected text is empty; otherwise indents selected text.

ResetAllowedSelectionMode()

When implemented by a class, resets the AllowedSelectionMode to the default value.

ResetOptions()

When implemented by a class, resets the Options to the default value.

ScrollIfNeeded(Point)

When implemented by a class, scrolls to specified position if needed.

SelectAll()

When implemented by a class, selects all lines in the control's content.

SelectCharLeft()

When implemented by a class, increases selected text to one character at the left side of the selection region.

SelectCharLeft(SelectionType)

When implemented by a class, increases selected text to one character at the left side of the selection region and sets a given selection type.

SelectCharRight()

When implemented by a class, increases selected text to one character at the right side of the selection region.

SelectCharRight(SelectionType)

When implemented by a class, increases selected text to one character at the right side of the selection region and sets a given selection type.

SelectFileBegin()

When implemented by a class, increases selected text to beginning of the control's content.

SelectFileBegin(SelectionType)

When implemented by a class, increases selected text to beginning of the control's content and sets a given selection type.

SelectFileEnd()

When implemented by a class, increases selected text to end of the control's content.

SelectFileEnd(SelectionType)

When implemented by a class, increases selected text to end of the control's content and sets a given selection type.

SelectLine()

When implemented by a class, selects entire line at the current position in the control.

SelectLineBegin()

When implemented by a class, selects from current position to the beginning of current line in the control.

SelectLineBegin(SelectionType)

When implemented by a class, selects from current position to the beginning of current line in the control and sets a given selection type.

SelectLineDown()

When implemented by a class, increases selected text to the following line in the control.

SelectLineDown(SelectionType)

When implemented by a class, increases selected text to the following line in the control and sets a given selection type.

SelectLineEnd()

When implemented by a class, selects from current position to the end of current line in the control.

SelectLineEnd(SelectionType)

When implemented by a class, selects from current position to the end of current line in the control and sets a given selection type.

SelectLineOnTrippleClick()

When implemented by a class, selects entire line at the current position in the control as a result of triple click.

SelectLineUp()

When implemented by a class, increases selected text to the preceding line in the control.

SelectLineUp(SelectionType)

When implemented by a class, increases selected text to the preceding line in the control and sets a given selection type.

SelectPageDown()

When implemented by a class, increases selected text to the one page down in the control.

SelectPageDown(SelectionType)

When implemented by a class, increases selected text to the one page down in the control and sets a given selection type.

SelectPageUp()

When implemented by a class, increases selected text to the one page up in the control.

SelectPageUp(SelectionType)

When implemented by a class, increases selected text to the one page up in the control and sets a given selection type.

SelectScreenBottom()

When implemented by a class, increases selected text to the end of screen.

SelectScreenBottom(SelectionType)

When implemented by a class, increases selected text to the end of the screen and sets a given selection type.

SelectScreenTop()

When implemented by a class, increases selected text to the begin of screen.

SelectScreenTop(SelectionType)

When implemented by a class, increases selected text to the begin of the screen and sets a given selection type.

SelectToBrace()

When implemented by a class, increases selected text to the next open or closing brace.

SelectToCloseBrace()

When implemented by a class, increases selected text to the next closing brace.

SelectToOpenBrace()

When implemented by a class, increases selected text to the prev open brace.

SelectWord()

When implemented by a class, selects a word at the current position in the control.

SelectWordLeft()

When implemented by a class, increases selected text to the word located at the left side of the current position in the control.

SelectWordLeft(SelectionType)

When implemented by a class, increases selected text to the word located at the left side of the current position in the control and sets a given selection type.

SelectWordRight()

When implemented by a class, increases selected text to the word located at the right side of the current position in the control.

SelectWordRight(SelectionType)

When implemented by a class, increases selected text to the word located at the right side of the current position in the control and sets a given selection type.

SelectedCount()

When implemented by a class, returns amount of the lines being selected.

SelectedString(int)

When implemented by a class, returns selected part of string at specified position.

SelectionToScreen()

When implemented by a class, represents selection region in a screen coordinates.

SelectionToTextPoint(Point)

When implemented by a class, converts given selection coordinate to the text coordinate.

SetSelection(SelectionType, Point, Point)

When implemented by a class, sets new selection region with specified selection type.

SetSelection(SelectionType, Rectangle)

When implemented by a class, sets new selection region with specified selection type.

SmartFormat()

When implemented by a class, formats selected text using indentation obtained from Syntax Parser supporting Alternet.Syntax.SyntaxOptions.SmartIndent.

SmartFormat(char)

When implemented by a class, formats given line using indentation obtained from Syntax Parser supporting Alternet.Syntax.SyntaxOptions.SmartIndent.

Specifies Character being typed
SmartFormat(int)

When implemented by a class, formats given line using indentation obtained from Syntax Parser supporting Alternet.Syntax.SyntaxOptions.SmartIndent.

SmartFormatBlock(bool, char)

When implemented by a class, formats current syntax block using indentation obtained from Syntax Parser supporting Alternet.Syntax.SyntaxOptions.SmartIndent.

SmartFormatDocument()

When implemented by a class, formats entire document using indentation obtained from Syntax Parser supporting Alternet.Syntax.SyntaxOptions.SmartIndent.

SmartIndent()

When implemented by a class, positions the cursor to the line indentation level, obtained from parser supporting Alternet.Syntax.SyntaxOptions.SmartIndent option when user presses Enter.

SmartIndent(char)

When implemented by a class, formats given current line using indentation obtained from Syntax Parser supporting Alternet.Syntax.SyntaxOptions.SmartIndent.

Specifies character being pressed
StartSelection()

When implemented by a class, forces selection start.

SwapAnchor()

When implemented by a class, change current position from beginning of selection rectangle to the end of selection rectangle or vice versa.

Tabify()

When implemented by a class, converts spaces to tabs in the current string within the selected area according to tab settings.

TextToSelectionPoint(Point)

When implemented by a class, converts given text coordinate to the selection coordinate.

ToggleOutlining()

When implemented by a class, toggles expanded state for all IOutlineRange objects in outline collection.

ToggleOverWrite()

When implemented by a class, toggles the control's overwrite mode.

UnIndent()

When implemented by a class, unindents the selected text by one indentation level, deleting Tab or spaces from the beginning of the line.

UnTabify()

When implemented by a class, converts tabs to spaces in the current string within the selected area according to tab settings.

UncommentSelection()

When implemented by a class, removes the comment syntax from the selected text.

UpdateSelRange(Point, Point)

When implemented by a class, updates selection start and end to the specified position.

UpdateSelStart(bool)

When implemented by a class, updates selection start to the specified position.

UpdateSelStart(Point)

When implemented by a class, updates selection start to the specified position.

UpdateSelection()

When implemented by a class, invalidates selected region.

UpperCase()

When implemented by a class, converts all selected characters to the upper-case.

WordTransponse()

When implemented by a class, transposes word under the caret with the next word.

Events

AfterPaste

When implemented by a class, occurs when text is already pasted.

BeforePaste

When implemented by a class, occurs when text is about to be pasted.

SelectionChanged

When implemented by a class, occurs when selection bounds are changed.