Table of Contents

Class HandlerForDisposed

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

This is dummy handler used for the disposed controls in some cases.

public class HandlerForDisposed : PlessControlHandler, IBaseObjectWithId, IAnimationPlayerHandler, IButtonHandler, ICalendarHandler, ICheckBoxHandler, IComboBoxHandler, IContextMenuHandler, IDateTimePickerHandler, ILinkLabelHandler, IListViewHandler, IMainMenuHandler, IControlHandler, IDisposableObject, IDisposable, IBaseObject, IMenuItemHandler, IRadioButtonHandler, IRichTextBox, ISimpleRichTextBox, IScrollBarHandler, ISliderHandler, ITextBoxHandler, ITreeViewHandler, IVListBoxHandler, IWebBrowserLite, IWindowHandler
Inheritance
HandlerForDisposed
Implements

Fields

Default

Gets dummy control handler.

Properties

AccessToDevToolsEnabled

Enables or disables access to developer tools for the user.

AlignRight

Gets or sets whether to align check box on the right side of the text.

AllowAllStatesForUser

Gets or sets whether user can set the checkbox to the third state by clicking.

AllowLabelEdit

Gets or sets a value indicating whether the user can edit the labels of items in the control.

AlwaysOnTop

Gets or sets a value indicating whether the window should be placed above all non-topmost windows and should stay above them, even when the window is deactivated.

AnimationSize

Gets the size of the animation in pixels.

AutoUrl

Gets or sets a value indicating whether urls in the input text are highlighted and underlined.

Backend

Gets the current WebBrowser backend.

CanGoBack

Gets a value indicating whether a previous page in navigation history is available, which allows theGoBack() method to succeed.

CanGoForward

Gets a value indicating whether a subsequent page in navigation history is available, which allows the GoForward() method to succeed.

CheckState

Gets or sets the state of the CheckBox.

Click
CloseEnabled

Gets or sets a value indicating whether the window has an enabled close button.

ColumnHeaderVisible

Gets or sets a boolean value which specifies whether the column header is visible in Details view.

ContextMenuEnabled

Enables or disables the right click context menu.

CurrentPosition

Gets or sets current position of the caret.

DisabledImage

Sets image for the 'Disabled' state.

Editable

Gets or sets whether the control is currently editable.

EmptyTextHint

Gets or sets a hint shown in an empty unfocused text control.

EventNewPos
EventOldPos
EventTypeID
ExactFit

Gets or sets whether buttons are made of at least the standard button size, even if their contents is small enough to fit into a smaller size.

FocusedImage

Sets image for the 'Focused' state.

FocusedItemIndex

Gets or sets focused item index.

FrameCount

Gets the number of frames for this animation.

FullRowSelect

Gets or sets a value indicating whether the selection highlight spans the width of the tree view control.

GridLinesDisplayMode

Gets or sets the grid line display mode for this list view.

HScrollBarVisible
HasBorder

Gets or sets a value indicating whether the control has a border.

HasSystemMenu

Gets or sets whether system menu is visible for this window.

HasTitleBar

Gets or sets a boolean value indicating whether window has title bar.

HideRoot

Gets or sets a value indicating whether the display of the root node is supressed. This effectively causing the first-level nodes to appear as a series of root nodes.

HideSelection

Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the control loses focus.

HideVertScrollbar

Gets or sets a value indicating whether vertical scrollbar is hidden in the control.

HoverColor

Gets or sets the color used to draw the label of the hyperlink when the mouse is over the control.

HoveredImage

Sets image for the 'Hovered' state.

Indentation

Gets or sets the current control indentation.

InsertionPointLineNumber

Gets the line number (zero-based) with the cursor.

IsActive

Gets a value indicating whether the window is the currently active window for this application.

IsBusy

Gets a value indicating whether the control is currently busy (e.g. loading a web page).

IsCancel
IsChecked

Gets or sets whether or not this control is checked.

IsDefault
IsEdgeBackend

Gets whether backend is WebView2.

IsEmpty

Gets whether control contains text.

IsModal
IsOk

Returns true if animation data is present.

IsPassword

Gets or sets a value indicating whether the input text is password and all characters are shown as *.

IsPopupWindow

Gets or sets a value indicating whether to create a special popup window.

IsRichEdit

Gets or sets a value indicating whether text control is in rich edit mode

IsToolWindow

A tool window does not appear in the Windows taskbar or in the window that appears when the user presses ALT+TAB. On Windows, a tool window doesn't have minimize and maximize buttons.

IsVertical

Gets or sets whether scrollbar is vertical.

ItemsCount

Sets items count.

Kind

Gets or sets whether to edit date part or time part of the DateTime value.

LastLineNumber

Gets the last line number (zero-based).

MarkDateAttr

Gets or sets the ICalendarDateAttr attributes for the marked days.

MaxValue

Gets or sets the maximum date and time that can be selected in the control.

MaximizeEnabled

Gets or sets a value indicating whether the window has an enabled maximize button.

MinValue

Gets or sets the minimum date and time that can be selected in the control.

MinimizeEnabled

Gets or sets a value indicating whether the window has an enabled minimize button.

ModalResult
MondayFirst

Gets or sets whether or not the first day of week is monday.

Multiline

Gets or sets a value indicating whether this is a multiline text box control.

Name

Gets or sets name of the control.

NoMonthChange

Gets or sets a value indicating whether to disable the month (and, implicitly, the year) changing. Not implemented on all platforms.

NoYearChange

Gets or sets whether or not current year can be changed.

NormalColor

Gets or sets the color used to draw the label when the link has never been clicked before (i.e. the link has not been visited) and the mouse is not over the control.

NormalImage

Sets image for the 'Normal' state.

OwnerDrawStyle
PageSize

Gets or sets page size.

PageSource

Gets the HTML source code of the currently displayed document or an empty string if no page is currently shown.

PageText

Gets the text of the current page.

PopupControl

Gets or sets control that will be shown in the popup.

PopupKind

Gets or sets whether to show calendar popup or edit date with spin control.

PreferredColorScheme

Sets the overall color scheme of the WebBrowser.

PressedImage

Sets image for the 'Pressed' state.

ProcessEnter

Gets or sets a value indicating whether the EnterPressed event is fired.

ProcessTab

Gets or sets a value indicating whether the TAB key is received and processed by the control.

Range

Gets or sets scrolling range.

ReadOnly

Gets or sets a value indicating whether text in the text box is read-only.

ReportedUrl

Gets url at current position of the cursor. This property is only valid in the event handler.

Resizable

Gets or sets a value indicating whether the window can be resized by user.

RowLines

Gets or sets a value indicating whether to draw a contrasting border between displayed rows.

SelectedIndices

Gets a collection that contains the zero-based indexes of all currently selected items in the ListView.

SelectedSource

Gets the HTML source code of the currently selected portion of the web page or an empty string if no selection exists.

SelectedText

Gets a value indicating the currently selected text in the control.

SelectionMode
SequentalMonthSelect

Gets or sets a value indicating whether to use alternative, more compact, style for the month and year selection controls.

ShowExpandButtons

Gets or sets a value indicating whether expand buttons are displayed next to tree items that contain child tree items.

ShowHolidays

Gets or sets a value indicating whether to highlight holidays in the calendar

ShowInTaskbar

Gets or sets a value indicating whether the form is displayed in the Windows or Linux taskbar.

ShowLines

Gets or sets a value indicating whether lines are drawn between tree items in the tree view control.

ShowRootLines

Gets or sets a value indicating whether lines are drawn between the tree items that are at the root of the tree view.

ShowSurroundWeeks

Gets or sets a value indicating whether to show the neighbouring weeks in the previous and next months. (only generic, always on for the native controls)

ShowWeekNumbers

Gets or sets a value indicating whether to show week numbers on the left side of the calendar.

State

Gets or sets a value that indicates whether window is minimized, maximized, or normal.

StateImageSpacing

Gets or sets the number of horizontal pixels between the buttons and the state images.

StatusBar

Gets or sets window status bar.

SundayFirst

Gets or sets whether or not the first day of week is sunday.

TextAlign

Sets the position at which the text is displayed.

TextMargins

Gets text margin. It is the empty space between borders of control and the text itself.

TextSelectionLength

Gets the number of characters selected in the editable portion of the combo box.

TextSelectionStart

Gets the starting index of text selected in the combo box.

TextVisible

Gets or sets visibility of the text in the bitmap.

TextWrap

Gets or sets text wrap style fot the multiline TextBox controls.

ThreeState

Gets or sets a value indicating whether the CheckBox will allow three check states rather than two.

ThumbPosition

Gets or sets thumb position.

Title

Gets or sets the title of the control as string. There is also TitleAsObject property.

TopItem

Gets or sets the first fully-visible item in the list view control.

TwistButtons

Gets or sets a value indicating whether to select alternative style of +/- buttons and to show rotating ("twisting") arrows instead.

Url

Gets or sets the URL associated with the hyperlink.

UseGeneric

Gets or sets a value indicating whether to use generic calendar or native calendar.

UserAgent

Gets or sets the custom user agent string for the WebBrowser control.

VScrollBarVisible
Value

Gets or sets the currently selected date.

VariableRowHeight

Gets or sets a value indicating whether row heights become big enough to fit the content.

Visited

Gets or sets whether the hyperlink has already been clicked by the user at least one time.

VisitedColor

Gets or sets the color used to draw the label when the mouse is not over the control and the link has already been clicked before (i.e. the link has been visited).

Zoom

Gets or sets the zoom level of the page.

ZoomFactor

Gets or sets the zoom factor of the page.

ZoomType

Gets or sets how the zoom factor is currently interpreted by the HTML engine.

Methods

Activate()

Activates the window.

AddScriptMessageHandler(string)

Adds a script message handler with the given name.

AddUserScript(string, bool)

Injects the specified script into the webpage's content.

AllowMonthChange()
AppendText(string)

Sets the insertion point to the end of the buffer and writes the text.

ApplyAlignmentToSelection(TextBoxTextAttrAlignment)

Applies the given alignment to the selection or the default style (undoable).

ApplyBoldToSelection()

Apples bold to the selection or default style (undoable).

ApplyItalicToSelection()

Applies italic to the selection or default style (undoable).

ApplyStyleToSelection(ITextBoxRichAttr, RichTextSetStyleFlags)

Sets specified style to the selection.

ApplyTextEffectToSelection(TextBoxTextAttrEffects)

Applies one or more TextBoxTextAttrEffects flags to the selection (undoable). If there is no selection, it is applied to the default style.

ApplyUnderlineToSelection()

Applies underline to the selection or default style (undoable).

AttachItems(IListControlItems<ListControlItem>)
BatchingUndo()

Returns true if undo commands are being batched.

BeginAlignment(TextBoxTextAttrAlignment)

Begins using alignment.

BeginBatchUndo(string)

Starts batching undo history for commands.

BeginBold()

Begins using bold.

BeginCharacterStyle(string)

Begins using the named character style.

BeginFont(Font?)

Begins using this font.

BeginFontSize(double)

Begins using the given point size.

BeginFontSize(int)

Begins using the given point size.

BeginItalic()

Begins using italic.

BeginLabelEdit(TreeViewItem)

Initiates the editing of the tree item label.

BeginLabelEdit(long)

Initiates the editing of the list view item label.

BeginLeftIndent(int, int)

Begins applying a left indent and subindent in tenths of a millimetre.

BeginLineSpacing(int)

Begins applying line spacing.

BeginListStyle(string, int, int)

Begins using a specified list style. Optionally, you can also pass a level and a number.

BeginNumberedBullet(int, int, int, TextBoxTextAttrBulletStyle)

Begins a numbered bullet.

BeginParagraphSpacing(int, int)

Begins paragraph spacing; pass the before-paragraph and after-paragraph spacing in tenths of a millimetre.

BeginParagraphStyle(string)

Begins applying the named paragraph style.

BeginRightIndent(int)

Begins a right indent, specified in tenths of a millimetre.

BeginStandardBullet(string, int, int, TextBoxTextAttrBulletStyle)

Begins applying a symbol bullet.

BeginStyle(ITextBoxRichAttr)

Begins applying a style.

BeginSuppressUndo()

Starts suppressing undo history for commands.

BeginSymbolBullet(string, int, int, TextBoxTextAttrBulletStyle)

Begins applying a symbol bullet, using a character from the current font. See BeginNumberedBullet(int, int, int, TextBoxTextAttrBulletStyle) for an explanation of how indentation is used to render the bulleted paragraph.

BeginTextColor(Color)

Begins using this color.

BeginURL(string, string?)

Begins applying Url to the content. Pass a URL and optionally, a character style to apply, since it is common to mark a URL with a familiar style such as blue text with underlining.

BeginUnderline()

Begins using underlining.

CanCopy()

Returns true if selected content can be copied to the clipboard.

CanCut()

Returns true if selected content can be copied to the clipboard and deleted.

CanDeleteSelection()

Returns true if selected content can be deleted.

CanPaste()

Returns true if the clipboard content can be pasted to the buffer.

CanRedo()

Returns true if there is a command in the command history that can be redone.

CanSetZoomType(WebBrowserZoomType)

Retrieve whether the current HTML engine supports a zoom type.

CanUndo()

Returns true if there is a command in the command history that can be undone.

Clear()

Removes all items and columns from the control.

ClearHistory()

Clear the history, this will also remove the visible page.

ClearItems()
ClearListStyle(long, long, RichTextSetStyleFlags)

Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.

ClearSelected()
ClearSelection()

Clears the current selection.

ClearTicks()

Clears sliderr ticks.

Close()

Closes the window.

CollapseAll()

Collapses all child tree items.

CollapseAllChildren(TreeViewItem)

Collapses all children of the specified item.

Copy()

Copies the selected content (if any) to the clipboard.

CreateDateAttr(CalendarDateBorder)

Creates ICalendarDateAttr instance.

CreateRichAttr()

Creates new custom rich text style.

CreateTextAttr()

Creates text attributes object.

CreateUrlAttr()

Creates default style for the urls.

Cut()

Copies the selected content (if any) to the clipboard and deletes the selection. This is undoable.

Delete(long, long)

Deletes the content within the given range.

DeleteSelectedContent()

Deletes content if there is a selection, e.g. when pressing a key. Returns the new caret position in @e newPos, or leaves it if there was no action. This is undoable.

DeleteSelection()

Deletes the content in the selection, if any. This is undoable.

DetachItems(IListControlItems<ListControlItem>)
DiscardEdits()

Sets the buffer's modified status to false, and clears the buffer's command history.

DismissPopup()

Closes popup window.

DoCommand(string, params object?[])

Executes a browser command with the specified name and parameters.

DoSetCurrent(int)
DoWriteText(string, TextBoxSetValueFlags)

Writes text.

DoesSelectionHaveTextEffectFlag(TextBoxTextAttrEffects)

Returns true if all of the selection, or the content at the current caret position, has the supplied effects flag(s).

EmptyUndoBuffer()

Clears internal undo buffer. No undo operations are available after this operation.

EnableDelayedImageLoading(bool)

Enable or disable delayed image loading.

EnableHistory(bool)

Enables or disables the history.

EnableHolidayDisplay(bool)
EnableImages(bool)

Enable or disable images.

EnableMonthChange(bool)
EnableVerticalScrollbar(bool)

Enable or disable the vertical scrollbar.

EnableVirtualAttributes(bool)

Pass true to let the control use attributes. The default is false.

EndAlignment()

Ends alignment.

EndAllStyles()

Ends application of all styles in the current style stack.

EndBatchUndo()

Ends batching undo command history.

EndBold()

Ends using bold.

EndCharacterStyle()

Ends application of a named character style.

EndFont()

Ends using a font.

EndFontSize()

Ends using a point size.

EndItalic()

Ends using italic.

EndLabelEdit(TreeViewItem, bool)

Ends the editing of the tree item label.

EndLeftIndent()

Ends left indent.

EndLineSpacing()

Ends line spacing.

EndListStyle()

Ends using a specified list style.

EndNumberedBullet()

Ends application of a numbered bullet.

EndParagraphSpacing()

Ends paragraph spacing.

EndParagraphStyle()

Ends application of a named paragraph style.

EndRightIndent()

Ends right indent.

EndStandardBullet()

Begins applying a standard bullet.

EndStyle()

Ends the current style.

EndSuppressUndo()

Ends suppressing undo command history.

EndSymbolBullet()

Ends applying a symbol bullet.

EndTextColor()

Ends applying a text color.

EndURL()

Ends applying a URL.

EndUnderline()

End applying underlining.

EnsureItemVisible(long)

Ensures that item is visible.

EnsureVisible(TreeViewItem)

Ensures that the tree item is visible, expanding tree items and scrolling the tree view control as necessary.

EnsureVisible(int)
ExpandAll()

Expands all child tree items.

ExpandAllChildren(TreeViewItem)

Expands all children of the specified item.

ExtendSelection(long, long, RichTextMoveCaretFlags)

Helper function for extending the selection, returning true if the selection was changed. Selections are in caret positions.

Find(string, WebBrowserFindParams?)

Finds a text on the current page and if found, the control will scroll the text into view and select it.

FindClearResult()

Resets the search and the highlighted results.

FindNextWordPosition(int)

Helper function for finding the caret position for the next word. Direction is 1 (forward) or -1 (backwards).

ForceDelayedLayout()

Forces any pending layout due to delayed, partial layout when the control was resized.

GetAdjustedCaretPosition(long)

Gets the adjusted caret position.

GetAttr(int)

Returns the ICalendarDateAttr attributes for the given day or null.

GetBasicStyle()

Gets the basic (overall) style.

GetCaretAtLineStart()

Returns true if we are showing the caret position at the start of a line instead of at the end of the previous one.

GetCaretPosition()

Returns the current caret position.

GetCaretPositionForDefaultStyle()

Returns the caret position since the default formatting was changed. As soon as this position changes, we no longer reflect the default style in the UI. A value of -2 means that we should only reflect the style of the content under the caret.

GetCurrentTitle()

Get the title of the current web page.

GetCurrentURL()

Get the URL of the currently displayed document.

GetDefaultStyle()

Returns the style currently used for the new text.

GetDefaultStyleEx()

Returns the current default style, which can be used to change how subsequently inserted text is displayed.

GetDelay(uint)

Gets the delay (in milliseconds) for the specified frame.

GetDelayedImageLoading()

Returns true if delayed image loading is enabled.

GetDelayedImageProcessingRequired()

Gets the flag indicating that delayed image processing is required.

GetDelayedImageProcessingTime()

Returns the last time delayed image processing was performed.

GetDelayedLayoutThreshold()

Gets the size of the buffer beyond which layout is delayed during resizing. This optimizes sizing for large buffers. The default is 20000.

GetDragging()

Returns true if we are dragging a selection.

GetFileHandlerFlags()

Returns flags that change the behaviour of loading or saving. See the documentation for each handler class to see what flags are relevant for each handler.

GetFileName()

Gets name of the file loaded into the control.

GetFirstSelected()
GetFirstVisiblePoint()

Returns the first visible point in the control.

GetFirstVisiblePosition()

Returns the first visible position in the current view.

GetFontScale()

Returns the scale factor for displaying fonts, for example for more comfortable editing.

GetFrame(uint)

Returns the specified frame as a GenericImage.

GetFullLayoutRequired()

Gets the flag indicating that full layout is required.

GetFullLayoutSavedPosition()

Returns the position that should be shown when full (delayed) layout is performed.

GetFullLayoutTime()

Returns the last time full layout was performed.

GetHeaderColorBg()

Get header background color.

GetHeaderColorFg()

Get header foreground color.

GetHighlightColorBg()

Get highlight background color.

GetHighlightColorFg()

Get highlight foreground color.

GetHolidayColorBg()

Gets holidays background color.

GetHolidayColorFg()

Gets holidays foreground color.

GetImagesEnabled()

Returns true if images are enabled.

GetInsertionPoint()

Returns the current insertion point.

GetItemBounds(long, ListViewItemBoundsPortion)

Retrieves the bounding rectangle for an item within the control.

GetItemRect(int)

Returns the rectangle occupied by this item in physical coordinates (dips). If the item is not currently visible, returns an empty rectangle.

GetLastPosition()

Returns the last position in the buffer.

GetLineHeight()

Gets the line increment height in pixels.

GetLineLength(long)

Returns the length of the specified line in characters.

GetLineText(long)

Returns the text for the given line.

GetLogicalPoint(PointI)

Transforms physical window position to logical (unscrolled) position.

GetNativeBackend()

Returns pointer to the native backend interface.

GetNextSelected()
GetNumberOfLines()

Returns the number of lines in the buffer.

GetOtherBorderForSizer()
GetPhysicalPoint(PointI)

Transforms logical (unscrolled) position to physical window position.

GetRange(long, long)

Returns the string containing the text starting in the positions from and up to to in the control.

GetRichStyle(long)

Gets the attributes at the given position.

GetRichStyleForRange(long, long)

Gets the attributes common to the specified range. Attributes that differ in value within the range will not be included in style flags.

GetSelectedCount()
GetSelection()
GetSelectionAnchor()

Returns an anchor so we know how to extend the selection. It's a caret position since it's between two characters.

GetSelectionEnd()

Gets the current selection end position.

GetSelectionStart()

Gets the current selection start position.

GetStringSelection()

Returns the text within the current selection range, if any.

GetStyle(long)

Gets the attributes at the given position.

GetStyleForRange(long, long)

Gets the attributes common to the specified range. Attributes that differ in value within the range will not be included in style flags.

GetTextCursor()

Returns the text (normal) cursor.

GetTopBorderForSizer()
GetURLCursor()

Returns the cursor to be used over URLs.

GetValue()

Returns the content of the entire control as a string.

GetVerticalScrollbarEnabled()

Returns true if the vertical scrollbar is enabled.

GetVirtualAttributesEnabled()

Returns true if this control can use attributes and text. The default is false.

GetVisibleBegin()

Gets index of the first visible item.

GetVisibleEnd()

Gets index of the last visible item.

GoBack()

Navigates the control to the previous page in the navigation history, if one is available.

GoForward()

Navigates the control to the subsequent page in the navigation history, if one is available.

HasParagraphAttributes(long, long, ITextBoxRichAttr)

Test if this whole range has paragraph attributes of the specified kind.

HasSelection()

Returns true if there is a selection and the object containing the selection was the same as the current focus object.

HasUnfocusedSelection()

Returns true if there was a selection, whether or not the current focus object is the same as the selection's container object.

HitTest(PointD)

Returns one of Calendar.HitTestResult constants.

HitTest(PointD, out TreeViewItem?, out TreeViewHitTestLocations, bool)

Provides tree view item information, at a given client point, in device-independent units.

IsCurrent(int)
IsDefaultStyleShowing()

Returns true if the user has recently set the default style without moving the caret, and therefore the UI needs to reflect the default style and not the style at the caret.

IsEditable()

Returns true if the control is editable.

IsItemFocused(TreeViewItem)

Checks whether or not item is focused.

IsItemSelected(TreeViewItem)

Gets whether item is selected.

IsModified()

Returns true if the buffer has been modified.

IsMultiLine()

Returns true if the control is multiline.

IsPlaying()

Gets whether animation is being played.

IsPositionVisible(long)

Returns true if the given position is visible on the screen.

IsSelected(int)
IsSelectionAligned(TextBoxTextAttrAlignment)

Returns true if all of the selection, or the content at the caret position, is aligned according to the specified flag.

IsSelectionBold()

Returns true if all of the selection, or the content at the caret position, is bold.

IsSelectionItalics()

Returns true if all of the selection, or the content at the caret position, is italic.

IsSelectionUnderlined()

Returns true if all of the selection, or the content at the caret position, is underlined.

IsSingleLine()

Returns true if the control is single-line. Currently RichTextBox does not support single-line editing.

IsValidPosition(long)

Return true if the given position is valid, i.e. positive and less than the last position.

IsVisible(int)
ItemHitTest(PointD)
LayoutContent(bool)

Lays out the buffer, which must be done before certain operations, such as setting the caret position. This function should not normally be required by the application.

LineBreak()

Inserts a line break at the current insertion point. A line break forces wrapping within a paragraph, and can be introduced by using this function or by typing Shift-Return.

Load(Stream, AnimationType)

Loads the animation from the given stream.

LoadFile(string, AnimationType)

Loads an animation from a file.

LoadFromFile(string, RichTextFileType)

Loads content into the control's buffer using the given type.

LoadFromStream(Stream, RichTextFileType)

Loads the buffer content from Stream using the given data type.

LoadURL(string)

Loads a web page from a URL.

MakeAsListBox()

Changes visual style of the control to look like ListBox.

Mark(int, bool)

Marks or unmarks the day.

MarkDirty()

Marks the buffer as modified.

MoveCaretBack(long)

Move the caret one visual step forward: this may mean setting a flag and keeping the same position if we're going from the end of one line to the start of the next, which may be the exact same caret position.

MoveCaretForward(long)

Move the caret one visual step forward: this may mean setting a flag and keeping the same position if we're going from the end of one line to the start of the next, which may be the exact same caret position.

MoveDown(int, RichTextMoveCaretFlags)

Moves the caret down.

MoveEnd(RichTextMoveCaretFlags)

Moves to the end of the buffer.

MoveHome(RichTextMoveCaretFlags)

Moves to the start of the buffer.

MoveLeft(int, RichTextMoveCaretFlags)

Moves left.

MoveRight(int, RichTextMoveCaretFlags)

Moves right.

MoveToLineEnd(RichTextMoveCaretFlags)

Moves to the end of the line.

MoveToLineStart(RichTextMoveCaretFlags)

Moves to the start of the line.

MoveToParagraphEnd(RichTextMoveCaretFlags)

Moves to the end of the paragraph.

MoveToParagraphStart(RichTextMoveCaretFlags)

Moves to the start of the paragraph.

MoveUp(int, RichTextMoveCaretFlags)

Moves to the start of the paragraph.

NavigateToString(string, string?)

Sets the displayed page source to the contents of the given string.

NewLine()

Inserts a new paragraph at the current insertion point. See LineBreak().

NumberList(long, long, string, RichTextSetStyleFlags, int, int)

Numbers the paragraphs in the given range.

PageDown(int, RichTextMoveCaretFlags)

Moves one or more pages down.

PageUp(int, RichTextMoveCaretFlags)

Moves one or more pages up.

Paste()

Pastes content from the clipboard to the buffer.

Play()

Starts playing the animation.

PositionToCoords(long)

Converts given text position to client coordinates in pixels.

PositionToXY(long)

Converts a text position to zero-based column and line numbers.

Print()

Opens a print dialog so that the user may change the current print and page settings and print the currently displayed page.

ProcessDelayedImageLoading(bool)

Does delayed image loading and garbage-collect other images.

PromoteList(int, long, long, string, RichTextSetStyleFlags, int)

Promotes or demotes the paragraphs in the given range.

Redo()

Redoes the current command.

RefreshRow(int)

Triggers a refresh for just the given row's area of the control if it is visible.

RefreshRows(int, int)

Triggers a refresh for the area between the specified range of rows given (inclusively).

Reload()

Reloads the document currently displayed in the control by downloading for an updated version from the server.

Reload(bool)

Reloads the document currently displayed in the control using the specified refresh option.

Remove(long, long)

Removes the content in the specified range.

RemoveAllUserScripts()

Removes all user scripts from the WebBrowser.

RemoveScriptMessageHandler(string)

Remove a script message handler with the given name that was previously added using AddScriptMessageHandler(string).

Replace(long, long, string)

Replaces the content in the specified range with the string specified by a value.

RequestDelayedImageProcessing()

Requests delayed image processing.

ResetAttr(int)

Clears any attributes associated with the given day.

RunScriptAsync(string, IntPtr?)

Runs the given JavaScript code asynchronously and returns the result via a ScriptResult event.

SaveToFile(string, RichTextFileType)

Saves the buffer content using the given type.

SaveToStream(Stream, RichTextFileType)

Saves the buffer content to Stream using the given data type.

ScrollIntoView(TreeViewItem)

Scrolls the specified item into view.

ScrollRowPages(int)
ScrollRows(int)
ScrollToRow(int)

Scrolls to the specified row.

SelectAll()

Selects all text in the control.

SelectAllText()

Selects all the text in the editable portion of the ComboBox.

SelectNone()

Cancels any selection.

SelectTextRange(int, int)

Selects a range of text in the editable portion of the ComboBox.

SelectWord(long)

Selects the word at the given character position.

SetAndShowDefaultStyle(ITextBoxRichAttr)

Sets attr as the default style and tells the control that the UI should reflect this attribute until the user moves the caret.

SetAttr(int, ICalendarDateAttr?)

Sets the ICalendarDateAttr attributes for the given day.

SetBasicStyle(ITextBoxRichAttr)

Sets the basic (overall) style.

SetCaretAtLineStart(bool)

Sets a flag to remember that we are showing the caret position at the start of a line instead of at the end of the previous one.

SetCaretPosition(long, bool)

Sets the caret position.

SetCaretPositionForDefaultStyle(long)

Set the caret position for the default style that the user is selecting.

SetColumnTitle(long, string)

Sets column title.

SetColumnWidth(long, double, ListViewColumnWidthMode)

Sets column width.

SetDefaultRichStyle(ITextBoxRichAttr)

Sets the current default style, which can be used to change how subsequently inserted text is displayed.

SetDefaultStyle(ITextBoxTextAttr)

Sets the current default style, which can be used to change how subsequently inserted text is displayed.

SetDefaultStyleToCursorStyle()

Sets the default style to the style under the cursor.

SetDelayedImageProcessingRequired(bool)

Sets the flag indicating that delayed image processing is required.

SetDelayedImageProcessingTime(long)

Sets the last time delayed image processing was performed.

SetDelayedLayoutThreshold(long)

Sets the size of the buffer beyond which layout is delayed during resizing. This optimizes sizing for large buffers. The default is 20000.

SetDragging(bool)

Sets a flag to remember if we are dragging a selection.

SetEditable(bool)

Makes the control editable, or not.

SetFileHandlerFlags(RichTextHandlerFlags, int)

Sets flags that change the behaviour of loading or saving. See the documentation for each handler class to see what flags are relevant for each handler.

SetFileName(string)

Sets name of the file loaded into the control.

SetFocused(TreeViewItem, bool)

Sets focused state for the item.

SetFontScale(double, bool)

Sets the scale factor for displaying fonts, for example for more comfortableediting.

SetFullLayoutRequired(bool)

Sets the flag indicating that full layout is required.

SetFullLayoutSavedPosition(long)

Sets the position that should be shown when full (delayed) layout is performed.

SetFullLayoutTime(long)

Sets the last time full layout was performed.

SetHeaderColors(Color, Color)

Sets values for HeaderColorBg and HeaderColorFg properties.

SetHighlightColors(Color, Color)

Sets values for HighlightColorBg and HighlightColorFg properties.

SetHoliday(int)

Marks the specified day as being a holiday in the current month.

SetHolidayColors(Color, Color)

Sets values for HolidayColorBg and HolidayColorFg properties.

SetIcon(IconSet?)

Sets window icon.

SetImageMargins(double, double)

Sets the margins between the image and the text of the button. Value is in device-independent units.

SetImagePosition(GenericDirection)

Sets the position at which the image is displayed.

SetInactiveBitmap(ImageSet?)

Sets the bitmap to show on the control when it's not playing an animation.

SetInsertionPoint(long)

Sets the insertion point and causes the current editing style to be taken from the new position (unlike SetCaretPosition(long, bool)).

SetInsertionPointEnd()

Sets the insertion point to the end of the text control.

SetItemBackgroundColor(TreeViewItem, Color?)

Sets background color of the item.

SetItemImageIndex(TreeViewItem, int?)

Sets item image index.

SetItemImageIndex(long, long, int?)

Sets item image.

SetItemIsBold(TreeViewItem, bool)

Sets item's bold state.

SetItemText(TreeViewItem, string)

Sets item text.

SetItemText(long, long, string)

Sets item text.

SetItemTextColor(TreeViewItem, Color?)

Sets foreground color of the item.

SetLineHeight(int)

Sets the line increment height in pixels.

SetListStyle(long, long, string, RichTextSetStyleFlags, int, int)

Sets the list attributes for the given range, passing flags to determine how the attributes are set.

SetMaxLength(ulong)

Sets the maximum number of characters that may be entered in a single line text control. For compatibility only; currently does nothing.

SetMenu(object?)

Sets window menu.

SetRange(bool, bool)

Sets possible date range in the native control.

SetRange(DateTime, DateTime, bool, bool)

Sets date range.

SetRichStyle(long, long, ITextBoxRichAttr)

Sets the attributes for the given range.

SetScrollbar(int?, int?, int?, bool)

Sets the native scrollbar properties.

SetSelected(int, bool)
SetSelection(int)
SetSelection(long, long)

Sets the selection to the given range. The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the selection for a character at position 5, use the range (5,6).

SetSelectionAnchor(long)

Sets an anchor so we know how to extend the selection. It's a caret position since it's between two characters.

SetSelectionBackground(Color)
SetSelectionRange(long, long)

Sets the selection to the given range. The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the selection for a character at position 5, use the range (5,6).

SetStyle(long, long, ITextBoxTextAttr)

Sets the attributes for the given range.

SetStyleEx(long, long, ITextBoxRichAttr, RichTextSetStyleFlags)

Sets the attributes for the given range, passing flags to determine how the attributes are set.

SetTextCursor(Cursor?)

Sets the text (normal) cursor.

SetURLCursor(Cursor?)

Sets the cursor to be used over URLs.

SetValue(string)

Replaces existing content with the given text.

SetVirtualHostNameToFolderMapping(string, string, WebBrowserHostResourceAccessKind)

Sets a mapping between a virtual host name and a folder path to make available to web sites via that host name.

Show(IControl, PointD?)

Show menu on screen.

ShowModal(IWindow?)
ShowModalAsync(Window?, Action<ModalResult>)
ShowPopup()

Shows popup window.

ShowPosition(long)

Scrolls the buffer so that the given position is in view.

Stop()

Stops playing the animation.

SuppressingUndo()

Returns true if undo history suppression is on.

Undo()

Undoes the command at the top of the command history, if there is one.

WordLeft(int, RichTextMoveCaretFlags)

Moves a number of words to the left.

WordRight(int, RichTextMoveCaretFlags)

Move a number of words to the right.

WriteImage(Image?, BitmapType, ITextBoxRichAttr?)

Writes a bitmap at the current insertion point. Supply an optional type to use for internal and file storage of the raw data.

WriteImage(string, BitmapType, ITextBoxRichAttr?)

Loads an image from a file and writes it at the current insertion point.

WriteTable(int, int, ITextBoxRichAttr?, ITextBoxRichAttr?)

Writes a table at the current insertion point, returning the table. If Null is returned, table was not created.

WriteText(string)

Writes text at the current position.

XYToPosition(long, long)

Translates from column and line number to position.

Events

CurrentPositionChanged

Occurs when CurrentPosition property value changes.