The IUserInterface type exposes the following members.

Methods

  Name Description
Public method ClearHistory
Clears all stacked edit histories in currently active document.
Public method Copy
Executes copy action.
Public method Cut
Executes cut action.
Public method Delete
Executes delete action.
Public method GetCharIndexFromLineColumnIndex
Calculates char-index from screen line/column index.
Public method GetIGraphics
Gets a graphic interface.
Public method GetIndexFromPosition
Get char-index of the char at the point specified by screen location.
Public method GetKeyBind
Gets an action which is already associated with given key. If no action was associate with given key, returns null.
Public method GetLineColumnIndexFromCharIndex
Calculates screen line/column index from char-index.
Public method GetLineHeadIndex
Gets the index of the first char in the line.
Public method GetLineHeadIndexFromCharIndex
Gets the index of the first char in the screen line which contains the specified char-index.
Public method GetLineIndexFromCharIndex
Calculates screen line index from char-index.
Public method GetLineLength
Gets length of the specified line.
Public method GetPositionFromIndex(Int32)
Calculate screen location of the character at specified index.
Public method GetPositionFromIndex(Int32, Int32)
Calculate screen location of the character at specified index.
Public method GetSelectedText()()()()
Gets currently selected text.
Public method GetSelectedText(String)
Gets currently selected text.
Public method GetSelectedTextLength
Gets number of characters currently selected.
Public method GetSelection
Gets range of current selection. Note that this method does not return [anchor, caret) pair but [begin, end) pair.
Public method GetTextInRange
Gets text in the range [begin, end).
Public method HandleTextInput
Processes specified text as an input by user.
Public method Invalidate()()()()
Invalidate graphic of whole area (force to be redrawn by next paint event message).
Public method Invalidate(Rectangle)
Invalidate graphic of the specified area (force to be redrawn by next paint event message).
Public method InvokeCaretMoved
Invokes CaretMoved event.
Public method InvokeIsRectSelectModeChanged Obsolete.
Invokes IsRectSelectModeChanged event.
Public method InvokeLineDrawing
Invokes LineDrawing event.
Public method InvokeLineDrawn
Invokes LineDrawn event.
Public method InvokeOverwriteModeChanged
Invokes OverwriteModeChanged event.
Public method Paste
Executes paste action.
Public method Redo
Executes REDO.
Public method RescheduleHighlighting
(Internal use only.) Make a highlighter run after a little moment.
Public method ResetKeyBind
Reset keybind to default.
Public method Scroll
Scrolls a portion of the window.
Public method ScrollToCaret
Scrolls to where the caret is.
Public method SelectAll
Selects all text.
Public method SetCursorGraphic
Sets graphic of mouse cursor.
Public method SetKeyBind
Sets or removes key-bind entry. Note that giving null to action will remove the key-bind.
Public method SetSelection
Sets selection range and update the desired column.
Public method Undo
Execute UNDO.
Public method UpdateCaretGraphic()()()()
Updates size and position of the caret graphic.
Public method UpdateCaretGraphic(Rectangle)
Updates size and position of the caret graphic.
Public method UpdateScrollBarRange
Updates scrollbar's range.

Properties

  Name Description
Public property CanCopy
Gets whether copy action can be executed or not.
Public property CanCut
Gets whether cut action can be executed or not.
Public property CanPaste
Gets whether paste action can be executed or not.
Public property CanRedo
Gets whether an available REDO action exists or not.
Public property CanUndo
Whether an available undo action exists or not.
Public property CaretIndex
Gets the index of where the caret is at (in char-index).
Public property ColorScheme
Color set used for displaying text.
Public property ConvertsFullWidthSpaceToSpace
Gets or sets whether to automatically convert an input full-width space to a space.
Public property ConvertsTabToSpaces
Gets or sets whether tab characters are used for indentation, instead of space characters.
Public property Document
Gets or sets the document which is the current editing target.
Public property DrawingOption
Gets or sets drawing options.
Public property DrawsEolCode
Gets or sets whether to show EOL code with special graphic or not.
Public property DrawsFullWidthSpace
Gets or sets whether to show full-width space with special graphic or not.
Public property DrawsSpace
Gets or sets whether to show half-width space with special graphic or not.
Public property DrawsTab
Gets or sets whether to show tab character with special graphic or not.
Public property Focused
Gets this component is focused by user or not.
Public property Font
Font to be used for displaying text.
Public property FontInfo
Font information to be used for displaying text.
Public property Highlighter
Gets or sets highlighter object to highlight currently active document or null to disable highlighting.
Public property HighlightsCurrentLine
Gets or sets whether the current line would be drawn with underline or not.
Public property HighlightsMatchedBracket
Gets or sets whether to highlight matched bracket or not.
Public property HRulerIndicatorType
Gets or sets type of the indicator on the horizontal ruler.
Public property IsOverwriteMode
Gets or sets whether overwrite mode is enabled or not. In overwrite mode, input character will not be inserted but replaces a character at where the caret is on.
Public property IsReadOnly
Gets or sets whether this document is read-only or not.
Public property IsRecordingHistory
Whether the edit actions will be recorded or not.
Public property IsRectSelectMode
Gets whether Azuki is in rectangle selection mode or not.
Public property IsSingleLineMode
Gets or sets whether the content should be limited to a single line.
Public property LeftMargin
Gets or sets left margin of the view in pixel.
Public property LineCount
Gets number of lines currently inputted.
Public property LineHeight
Gets height of each lines in pixel.
Public property LineSpacing
Gets distance between lines in pixel.
Public property MarksUri
Gets or sets whether URIs in the active document should be marked automatically with built-in URI marker or not.
Public property SelectionMode
Gets or sets currently active selection mode.
Public property ShowsDirtBar
Gets or sets whether to show 'dirt bar' or not.
Public property ShowsHScrollBar
Whether to show horizontal scroll bar or not.
Public property ShowsLineNumber
Whether to show line number or not.
Public property TabWidth
Gets or sets tab width in count of space characters.
Public property Text
Gets or sets currently inputted text.
Public property TextLength
Gets currently inputted character's count. Note that a surrogate pair or a combined character sequence will be counted as two characters.
Public property TopMargin
Gets or sets top margin of the view in pixel.
Public property UsesStickyCaret
Gets or sets whether caret behavior is 'sticky' or not.
Public property UsesTabForIndent
Gets or sets whether a tab character should be used for indentation or not, instead of space characters.
Public property View
Gets the associated view object.
Public property ViewType
Gets or sets type of the view. View type determine how to render text content.
Public property ViewWidth
Sets width of the content area (including line number area).

Events

  Name Description
Public event CaretMoved
Occurs soon after the document's caret was moved.
Public event IsRectSelectModeChanged Obsolete.
Occures soon after rectangular selection mode was changed.
Public event LineDrawing
Occurres before a screen line was drawn.
Public event LineDrawn
Occurres after a screen line was drawn.
Public event OverwriteModeChanged
Occurs soon after the overwrite mode was moved.

See Also