Table of Contents

Class SyntaxEditView

Namespace
Alternet.Editor
Assembly
Alternet.Editor.MAUI.v10.dll

Represents advanced multi-line text edit control.

[WinRTRuntimeClassName("Microsoft.UI.Xaml.Data.INotifyPropertyChanged")]
[WinRTExposedType(typeof(Alternet_Editor_SyntaxEditViewWinRTTypeDetails))]
public class SyntaxEditView : ControlView, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ISKCanvasView, IView, IElement, ITransform
Inheritance
SyntaxEditView
Implements
Derived

Constructors

SyntaxEditView()

Initializes a new instance of the SyntaxEditView class.

Fields

UseDefaultGotoLineDialog

Gets or sets a value indicating whether the default "Go To Line" dialog is used (provided by DisplayPromptAsync(string, string, string, string, string, int, Keyboard, string)). Default is false and editor uses "Go To Line" dialog with some additional features which is implemented inside Alternet.UI.

Properties

AcceptReturns
AcceptTabs
ActiveOutlineRange
AllowDrop

Gets or sets a value indicating whether the control can accept data that the user drags onto it.

AutoCorrectDelimiters
AutoCorrection
BorderColor
BorderStyle
BorderWidth
Braces
CanPan

Gets whether pan gestures are handled.

CanSwipe

Gets whether swipe gestures are enabled.

CharsInWidth
ClientArea
ClientHeight
ClientRect
ClientWidth
CodeCompletionBox
CodeCompletionButton
CodeCompletionChars
CodeCompletionHint
CodeCompletionMode
Control

Gets attached Control.

CurrentBlockRange
Cursor

Gets or sets the cursor that the control should normally display.

DefaultMenu
DisplayLines
EditMargin
Editor

Gets attached SyntaxEdit control.

EffectiveVisualTheme
EventHandlers
FirstSearch
Font

Gets or sets the font of the text displayed by the control.

GotoLineDialog
Gutter
HideCaret
HighlightCurrentBlock
HighlightMatchingBlocks
HighlightReferences
HighlightSearchResults
HighlightSymbolReferences
HorzSplitEdit
HorzSplitter
HyperText
InCycledSearch
InIncrementalSearch
IncrementalSearchString
IndentOptions
InnerTextSource
IsCodeCompletionWindowFocused
IsGesturesEnabled

Gets or sets whether gestures are enabled.

IsSearchActive
IsSearchFocused
IsSelectionByMouseEnabled

Gets whether selection by mouse is enabled.

KeepCaretOnLostFocus
KeyList
Lexer
LineSeparator
LineSpace
LineStyles
LineTerminator
Lines
LinesInHeight
MacroRecording
MacroRecords
MacroSuspendend
MaxLength
MinCodeCompletionInterval
Minimap
Modified
MousePosition
NavigateOptions
OpenSharedEditorFunc
Outlining
Overwrite
Pages
Painter
Position
PrevPosition
Printing
ReadOnly
Scrolling
SearchDialog
SearchDialogAppearance
SearchGlobal
SearchLen
SearchOptions
SearchPos
Selection
SingleLineMode
Source
Spelling
Strings
SyntaxEditTypeOverride

Gets ot sets type of the used SyntaxEdit. If Null, default editor type is used.

SyntaxPaint
Text

Gets or sets the text associated with this control.

Transparent
UpdateCount
UseDefaultMenu
VertSplitEdit
VertSplitter
VisualTheme
VisualThemeType
WhiteSpace
WordWrap
WrapAtMargin
WrapMargin

Methods

BindToEvents(SyntaxEdit)
CreateEditor()

Creates editor control.

DisplayGotoLineDialog(SyntaxEdit, DisplayPromptAsyncDelegate?)

Displays a dialog prompting the user to enter a line number and navigates the editor to the specified line.

InitializeEditor(SyntaxEdit)

Initializes the specified SyntaxEdit instance with default settings.

OnAfterNavigateToDeclaration(EventArgs)
OnAutoCorrect(AutoCorrectEventArgs)
OnBeforeNavigateToDeclaration(EventArgs)
OnCheckHyperText(HyperTextEventArgs)
OnCodeSnippetInserted(CodeSnippetEventArgs)
OnCustomDraw(CustomDrawEventArgs)
OnDoubleTapGesture(TappedEventArgs)

Raised when double tap gesture is recognized.

OnDrawHeader(DrawHeaderEventArgs)
OnDrawUserMargin(DrawUserMarginEventArgs)
OnGutterClick(EventArgs)
OnGutterDblClick(EventArgs)
OnHorizontalScroll(EventArgs)
OnJumpToUrl(UrlJumpEventArgs)
OnModifiedChanged(EventArgs)
OnNeedCodeCompletion(CodeCompletionArgs)
OnPaintBackground(PaintEventArgs)
OnPanGesture(PanUpdatedEventArgs)

Raised when pan gesture is recognized.

OnPromptOnReplace(PromptReplaceEventArgs)
OnScrollButtonClick(EventArgs)
OnSelectionChanged(EventArgs)
OnSourceChanged(SourceChangedEventArgs)
OnSourceStateChanged(NotifyEventArgs)
OnSplitHorz(EventArgs)
OnSplitVert(EventArgs)
OnUndoEvent(UndoEventArgs)
OnUnsplitHorz(EventArgs)
OnUnsplitVert(EventArgs)
OnVerticalScroll(EventArgs)
OnWordSpell(WordSpellEventArgs)
RaiseSystemColorsChanged()

Updates colors after application theme is changed.

RegisterDefaultGestures()

Registers default editor gestures.

SetBorderWidth(double, double, double, double)

Sets the border width using the specified values for each side.

UnbindFromEvents(SyntaxEdit)

Events

AfterNavigateToDeclaration
AutoCorrect
BeforeNavigateToDeclaration
CheckHyperText
CodeSnippetInserted
CustomDraw
DrawHeader
DrawUserMargin
GutterClick
GutterDblClick
HorizontalScroll
JumpToUrl
ModifiedChanged
NeedCodeCompletion
PaintBackground
PromptOnReplace
ScrollButtonClick
SelectionChanged
SourceChanged
SourceStateChanged
SplitHorz
SplitVert
UndoEvent
UnsplitHorz
UnsplitVert
VerticalScroll
WordSpell