C# Class _3PA.Npp.Line

Represents a line of text in a Scintilla control.
Afficher le fichier Open project: jcaillon/3P

Méthodes publiques

Méthode Description
EnsureVisible ( ) : void

Expands any parent folds to ensure the line is visible.

FoldChildren ( FoldAction action ) : void

Performs the specified fold action on the current line and all child lines.

FoldLine ( FoldAction action ) : void

Performs the specified fold action on the current line.

GetLastChild ( int level ) : int

Searches for the next line that has a folding level that is less than or equal to level and returns the previous line index.

Goto ( ) : void

Navigates the caret to the start of the line.

Any selection is discarded.

Line ( ) : System

New line objetc for the current line

Line ( int index ) : System

Initializes a new instance of the Line class.

MarkerAdd ( int marker ) : MarkerHandle

Adds the specified Marker to the line.

This method does not check if the line already contains the marker.

MarkerAddSet ( uint markerMask ) : void

Adds one or more markers to the line in a single call using a bit mask.

MarkerDelete ( int marker ) : void

Removes the specified Marker from the line.

If the same marker has been added to the line more than once, this will delete one copy each time it is used.

MarkerGet ( ) : uint

Returns a bit mask indicating which markers are present on the line.

MarkerNext ( uint markerMask ) : int

Efficiently searches from the current line forward to the end of the document for the specified markers.

For example, the mask for marker index 10 is 1 shifted left 10 times (1 << 10).

MarkerPrevious ( uint markerMask ) : int

Efficiently searches from the current line backward to the start of the document for the specified markers.

For example, the mask for marker index 10 is 1 shifted left 10 times (1 << 10).

ToggleFold ( ) : void

Toggles the folding state of the line; expanding or contracting all child lines.

The line must be set as a FoldLevelFlags.Header.

Method Details

EnsureVisible() public méthode

Expands any parent folds to ensure the line is visible.
public EnsureVisible ( ) : void
Résultat void

FoldChildren() public méthode

Performs the specified fold action on the current line and all child lines.
public FoldChildren ( FoldAction action ) : void
action FoldAction One of the FoldAction enumeration values.
Résultat void

FoldLine() public méthode

Performs the specified fold action on the current line.
public FoldLine ( FoldAction action ) : void
action FoldAction One of the FoldAction enumeration values.
Résultat void

GetLastChild() public méthode

Searches for the next line that has a folding level that is less than or equal to level and returns the previous line index.
public GetLastChild ( int level ) : int
level int The level of the line to search for. A value of -1 will use the current line FoldLevel.
Résultat int

Goto() public méthode

Navigates the caret to the start of the line.
Any selection is discarded.
public Goto ( ) : void
Résultat void

Line() public méthode

New line objetc for the current line
public Line ( ) : System
Résultat System

Line() public méthode

Initializes a new instance of the Line class.
public Line ( int index ) : System
index int The index of this line within the LineCollection that created it.
Résultat System

MarkerAdd() public méthode

Adds the specified Marker to the line.
This method does not check if the line already contains the marker.
public MarkerAdd ( int marker ) : MarkerHandle
marker int The zero-based index of the marker to add to the line.
Résultat MarkerHandle

MarkerAddSet() public méthode

Adds one or more markers to the line in a single call using a bit mask.
public MarkerAddSet ( uint markerMask ) : void
markerMask uint /// An unsigned 32-bit value with each bit cooresponding to one of the 32 zero-based Margin /// indexes to add. ///
Résultat void

MarkerDelete() public méthode

Removes the specified Marker from the line.
If the same marker has been added to the line more than once, this will delete one copy each time it is used.
public MarkerDelete ( int marker ) : void
marker int /// The zero-based index of the marker to remove from the line or -1 to delete all markers from the /// line. ///
Résultat void

MarkerGet() public méthode

Returns a bit mask indicating which markers are present on the line.
public MarkerGet ( ) : uint
Résultat uint

MarkerNext() public méthode

Efficiently searches from the current line forward to the end of the document for the specified markers.
For example, the mask for marker index 10 is 1 shifted left 10 times (1 << 10).
public MarkerNext ( uint markerMask ) : int
markerMask uint /// An unsigned 32-bit value with each bit cooresponding to one of the 32 zero-based Margin /// indexes. ///
Résultat int

MarkerPrevious() public méthode

Efficiently searches from the current line backward to the start of the document for the specified markers.
For example, the mask for marker index 10 is 1 shifted left 10 times (1 << 10).
public MarkerPrevious ( uint markerMask ) : int
markerMask uint /// An unsigned 32-bit value with each bit cooresponding to one of the 32 zero-based Margin /// indexes. ///
Résultat int

ToggleFold() public méthode

Toggles the folding state of the line; expanding or contracting all child lines.
The line must be set as a FoldLevelFlags.Header.
public ToggleFold ( ) : void
Résultat void