C# Класс ARCed.Scintilla.Annotation

Represents a customizable read-only block of text which can be displayed below each line in a Scintilla control.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clear ( ) : void

Removes all text and styles associated with the annotation.

Equals ( Annotation a ) : bool

Determines whether the specified Annotation is equal to the current Annotation.

Equals ( object obj ) : bool

Overridden. Determines whether the specified object is equal to the current object.

GetHashCode ( ) : int

Overridden. Serves as a hash function for a particular type.

GetStyles ( ) : IEnumerable

Returns a StyleRun enumerable representing the individual character styling of the annotation text.

SetStyles ( IEnumerable styles ) : void

Uses the enumerable StyleRun specified to individually style characters in the annotation text.

The Text property must be set prior to styling and the sum length of all runs should match the text length.

operator ( ) : bool

Tests whether two Annotation object differ in location or content.

Защищенные методы

Метод Описание
Annotation ( Scintilla scintilla, int lineIndex ) : System

Initializes a new instance of the Annotation class.

Приватные методы

Метод Описание
CheckInvalid ( ) : void

Описание методов

Annotation() защищенный Метод

Initializes a new instance of the Annotation class.
protected Annotation ( Scintilla scintilla, int lineIndex ) : System
scintilla Scintilla The control that created this object.
lineIndex int The zero-based index of the document line containing the annotation.
Результат System

Clear() публичный Метод

Removes all text and styles associated with the annotation.
public Clear ( ) : void
Результат void

Equals() публичный Метод

Determines whether the specified Annotation is equal to the current Annotation.
public Equals ( Annotation a ) : bool
a Annotation The annotation to compare with the current annotation.
Результат bool

Equals() публичный Метод

Overridden. Determines whether the specified object is equal to the current object.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
Результат bool

GetHashCode() публичный Метод

Overridden. Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Результат int

GetStyles() публичный Метод

Returns a StyleRun enumerable representing the individual character styling of the annotation text.
public GetStyles ( ) : IEnumerable
Результат IEnumerable

SetStyles() публичный Метод

Uses the enumerable StyleRun specified to individually style characters in the annotation text.
The Text property must be set prior to styling and the sum length of all runs should match the text length.
is null.
public SetStyles ( IEnumerable styles ) : void
styles IEnumerable /// The enumerable indicating how to style the annotation text, /// where the property of each run represents the number /// of characters the run spans. ///
Результат void

operator() публичный статический Метод

Tests whether two Annotation object differ in location or content.
public static operator ( ) : bool
Результат bool