IntelliPromptBase
Base class for IntelliPrompt implementations..
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.UI
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class IntelliPromptBase : Popup, IDisposable
Inheritance: objectIntelliPromptBase
Derived Classes:
Implements:
Constructors
Initializes a new instance of the IntelliPromptBase class.
public IntelliPromptBase(RadSyntaxEditor syntaxEditor)
The code editor.
Properties
Gets a value indicating whether [close on lost focus].
public virtual bool CloseOnLostFocus { get; }
true if [close on lost focus]; otherwise, false.
Gets the editor.
public RadSyntaxEditor Editor { get; }
The editor.
Gets the end position.
public CaretPosition EndPosition { get; }
The end position.
Gets a value indicating whether this instance has called close.
protected bool HasCalledClose { get; }
true if this instance has called close; otherwise, false.
Indicates whether the child presenter of this instance has items.
protected virtual bool HasItems { get; }
Gets or sets a value indicating whether this instance is automatic close.
public bool IsAutoClose { get; set; }
true if this instance is automatic close; otherwise, false.
Gets or sets a value indicating whether the control is currently performing selection.
protected bool IsSelecting { get; set; }
Gets or sets the opacity when control pressed.
public double OpacityWhenCtrlPressed { get; set; }
The opacity when control pressed.
Gets a value indicating whether [reposition on caret position changed].
public virtual bool RepositionOnCaretPositionChanged { get; }
true if [reposition on caret position changed]; otherwise, false.
Gets the start position.
public CaretPosition StartPosition { get; }
The start position.
Methods
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
protected override Size ArrangeOverride(Size finalSize)
The final area within the parent that this element should use to arrange itself and its children.
Returns:Size
The actual size used.
Attaches to editor.
protected virtual void AttachToEditor()
Automatics the close.
protected virtual void AutoClose()
Closes this instance.
public void Close()
Detaches from editor.
protected virtual void DetachFromEditor()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Handles the code editor key down.
protected virtual void HandleSyntaxEditorKeyDown(object sender, PreviewSyntaxEditorKeyEventArgs e)
The sender.
ePreviewSyntaxEditorKeyEventArgsThe PreviewSyntaxEditorKeyEventArgs instance containing the event data.
Handles the code editor key up.
protected virtual void HandleSyntaxEditorKeyUp(object sender, PreviewSyntaxEditorKeyEventArgs e)
The sender.
ePreviewSyntaxEditorKeyEventArgsThe PreviewSyntaxEditorKeyEventArgs instance containing the event data.
Resets this instance.
protected virtual void Reset()
Shows this instance.
public void Show()
Shows the specified start position.
public void Show(CaretPosition caretStartPosition, CaretPosition caretEndPositions)
The start position.
caretEndPositionsCaretPositionThe end position.