The AzukiControl type exposes the following members.

Constructors

  Name Description
Public method AzukiControl
Creates a new instance.

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.
Protected method Dispose
Disposes resources used by this AzukiControl.
(Overrides Control..::..Dispose(Boolean).)
Public method GetCharIndexFromLineColumnIndex
Calculates char-index from screen line/column index.
Public method GetHRulerIndex(Int32)
Calculates location of character at specified index in horizontal ruler index.
Public method GetHRulerIndex(Int32, Int32)
Calculates location of character at specified index in horizontal ruler index.
Public method GetIGraphics
Gets a graphic interface.
Public method GetIndexFromPosition
Gets char-index of the char at the point specified by screen location.
Public method GetKeyBind(UInt32)
Gets an action which is already associated with given key. If no action was associate with given key, returns null.
Public method GetKeyBind(Keys)
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)
Calculates screen location of the character at specified index.
Public method GetPositionFromIndex(Int32, Int32)
Calculates 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 GetWordAt
Gets a word at specified index.
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
For internal use only. Invokes CaretMoved event.
Public method InvokeIsRectSelectModeChanged Obsolete.
For internal use only. Invokes IsRectSelectModeChanged event.
Public method InvokeLineDrawing
Invokes LineDrawing event.
Public method InvokeLineDrawn
Invokes LineDrawn event.
Public method InvokeOverwriteModeChanged
For internal use only. Invokes OverwriteModeChanged event.
Protected method IsInputChar
This defines the characters which must be treated as input for this control. This affects mnemonic key event in a dialog and does not affect to KeyPress (WM_CHAR) event.
(Overrides Control..::..IsInputChar(Char).)
Protected method IsInputKey
This defines the keys which must be treated as input for this control. This affects mnemonic key event in a dialog and does not affect to KeyPress (WM_CHAR) event.
(Overrides Control..::..IsInputKey(Keys).)
Protected method OnClick
Invokes Click event with additional information through IMouseEventArgs.
(Overrides Control..::..OnClick(EventArgs).)
Protected method OnDoubleClick
Invokes DoubleClick event with additional information through IMouseEventArgs.
(Overrides Control..::..OnDoubleClick(EventArgs).)
Protected method OnGotFocus
Invokes GotFocus event.
(Overrides Control..::..OnGotFocus(EventArgs).)
Protected method OnHandleCreated
Invokes HandleCreated event.
(Overrides Control..::..OnHandleCreated(EventArgs).)
Protected method OnHandleDestroyed
Invokes HandleDestroyed event.
(Overrides Control..::..OnHandleDestroyed(EventArgs).)
Protected method OnKeyDown
Invokes KeyDown event.
(Overrides Control..::..OnKeyDown(KeyEventArgs).)
Protected method OnKeyPress
Invokes KeyPress event.
(Overrides Control..::..OnKeyPress(KeyPressEventArgs).)
Protected method OnLostFocus
Invokes LostFocus event.
(Overrides Control..::..OnLostFocus(EventArgs).)
Protected method OnMouseClick
Invokes MouseClick event with additional information through IMouseEventArgs.
(Overrides Control..::..OnMouseClick(MouseEventArgs).)
Protected method OnMouseDoubleClick
Invokes MouseDoubleClick event with additional information through IMouseEventArgs.
(Overrides Control..::..OnMouseDoubleClick(MouseEventArgs).)
Protected method OnMouseDown
Invokes MouseDown event with additional information through IMouseEventArgs.
(Overrides Control..::..OnMouseDown(MouseEventArgs).)
Protected method OnMouseMove
Invokes MouseMove event with additional information through IMouseEventArgs.
(Overrides Control..::..OnMouseMove(MouseEventArgs).)
Protected method OnMouseUp
Invokes MouseUp event with additional information through IMouseEventArgs.
(Overrides Control..::..OnMouseUp(MouseEventArgs).)
Protected method OnPaintBackground
Erases background. Note that Azuki does nothing on an event of redrawing background so just ignores WM_ERASEBKGND message.
(Overrides Control..::..OnPaintBackground(PaintEventArgs).)
Protected method OnResize
Invokes Resize event.
(Overrides Control..::..OnResize(EventArgs).)
Public method Paste
Executes paste action.
Public method PreProcessMessage
Pre-processes window messages to override system default behavior.
(Overrides Control..::..PreProcessMessage(Message%).)
Protected method ProcessDialogKey
This overrides focusing strategy.
(Overrides Control..::..ProcessDialogKey(Keys).)
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(UInt32, ActionProc)
Sets or removes key-bind entry. Note that giving null to action will remove the key-bind.
Public method SetKeyBind(Keys, ActionProc)
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
Executes 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 AcceptsReturn
If this is true, treats Enter key as an input and prevent pressing dialog default button.
Public property AcceptsTab
If this is true, treats Tab key as an input and prevent moving focus to other control in a dialog.
Public property AutoIndentHook
Gets or sets hook delegate to execute auto-indentation. If null, auto-indentation will not be performed.
Public property BackColor
Gets or sets default background color.
(Overrides Control..::..BackColor.)
Public property BorderStyle
Gets or sets graphical style of border of this control.
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
Gets 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 DrawsEofMark
Gets or sets whether to show EOF mark or not.
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 FirstVisibleLine
Gets or sets the index of the first visible (graphically top most) line of currently active document.
Public property Font
Gets or sets font to be used for displaying text.
(Overrides Control..::..Font.)
Public property FontInfo
Gets or sets raw font information to be used for displaying text.
Public property ForeColor
Gets or sets default text color.
(Overrides Control..::..ForeColor.)
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 IsLineSelectMode
Gets whether Azuki is in line selection mode or not.
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
Gets or sets 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 will 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 LinePadding
Gets or sets size of padding between 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 ScrollsBeyondLastLine
Gets or sets whether to scroll beyond the last line of the document or not.
Public property SelectionMode
Gets or sets how to select text.
Public property ShowsDirtBar
Gets or sets whether to show 'dirt bar' or not.
Public property ShowsHRuler
Gets or sets whether to show horizontal ruler or not.
Public property ShowsHScrollBar
Whether to show horizontal scroll bar or not.
Public property ShowsLineNumber
Gets or sets whether to show line number or not.
Public property ShowsVScrollBar
Whether to show vertical scroll bar or not.
Public property TabWidth
Gets or sets tab width in count of space characters.
Public property Text
Gets or sets currently inputted text.
(Overrides Control..::..Text.)
Public property TextLength
Gets currently inputted character's count. Note that a surrogate pair or a combining character sequence will be counted as two characters.
Public property TopMargin
Gets or sets top margin of the view in pixel.
Public property UseCtrlTabToMoveFocus
Gets or sets whether this control uses Ctrl+Tab and Ctrl+Shift+Tab for moving focus to other controls in a dialog.
Public property UsesStickyCaret
Gets or sets whether caret behavior is 'sticky' or not.
Public property UsesTabForIndent
Gets or sets whether tab characters are used for indentation, instead of space characters.
Public property Version
Gets version of Azuki.dll.
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
Gets or 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 changed.

See Also