Class CompletionData
Describes an entry in the ICSharpCode.AvalonEdit.CodeCompletion.CompletionList.
public class CompletionData : ICompletionData
- Inheritance
-
CompletionData
- Implements
-
ICompletionData
- Inherited Members
Constructors
CompletionData(ICompletion)
Initializes a new instance of the CompletionData class.
public CompletionData(ICompletion completion)
Parameters
completion
ICompletionCompletion that contains data for the new instance.
Exceptions
- ArgumentNullException
Thrown when a argument is null.
Properties
CompletionText
Gets the text. This property is used to filter the list of visible elements.
public string CompletionText { get; }
Property Value
Content
Gets the displayed content. This can be the same as 'Text', or a WPF UIElement if you want to display rich content.
public object Content { get; }
Property Value
Description
Gets the description.
public object Description { get; }
Property Value
Image
Gets the image.
public ImageSource Image { get; }
Property Value
Priority
Gets the priority. This property is used in the selection logic. You can use it to prefer selecting those items which the user is accessing most frequently.
public double Priority { get; }
Property Value
Text
Gets the text. This property is used to filter the list of visible elements.
public string Text { get; }
Property Value
TypeDescription
Gets the type description (e.g. Class).
public string TypeDescription { get; }
Property Value
Methods
Complete(TextArea, ISegment, EventArgs)
Perform the completion.
public void Complete(TextArea textArea, ISegment completionSegment, EventArgs insertionRequestEventArgs)
Parameters
textArea
TextAreaThe text area on which completion is performed.
completionSegment
ISegmentThe text segment that was used by the completion window if the user types (segment between CompletionWindow.StartOffset and CompletionWindow.EndOffset).
insertionRequestEventArgs
EventArgsThe EventArgs used for the insertion request. These can be TextCompositionEventArgs, KeyEventArgs, MouseEventArgs, depending on how the insertion was triggered.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.