Class SyntaxEditView
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
- AllowDrop
Gets or sets a value indicating whether the control can accept data that the user drags onto it.
- CanPan
Gets whether pan gestures are handled.
- CanSwipe
Gets whether swipe gestures are enabled.
- Cursor
Gets or sets the cursor that the control should normally display.
- Editor
Gets attached SyntaxEdit control.
- Font
Gets or sets the font of the text displayed by the control.
- IsGesturesEnabled
Gets or sets whether gestures are enabled.
- IsSelectionByMouseEnabled
Gets whether selection by mouse is enabled.
- SyntaxEditTypeOverride
Gets ot sets type of the used SyntaxEdit. If Null, default editor type is used.
- Text
Gets or sets the text associated with this control.
Methods
- 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.
- OnDoubleTapGesture(TappedEventArgs)
Raised when double tap gesture is recognized.
- OnPanGesture(PanUpdatedEventArgs)
Raised when pan gesture is recognized.
- 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.