C# Class CSharpOutline.TextRegion

Afficher le fichier Open project: Skybladev2/C--outline-for-Visual-Studio Class Usage Examples

Méthodes publiques

Méthode Description
AsOutliningRegionTag ( ) : TagSpan
AsSnapshotSpan ( ) : SnapshotSpan
ParseBuffer ( SnapshotParser parser, TextRegion parent ) : TextRegion

parses buffer

TextRegion ( ) : System
TextRegion ( SnapshotPoint startPoint, TextRegionType type ) : System
TryComplete ( SnapshotParser parser ) : bool

tries to close region

TryCreateRegion ( SnapshotParser parser ) : TextRegion

parses input buffer, searches for region start

Private Methods

Méthode Description
ExtendStartPoint ( ) : void

Tries to move region start point up to get C#-like outlining for (var k in obj) { -- from here for (var k in obj) -- to here {

GetCollapsedText ( ) : string
GetIndentation ( string s ) : int

Gets line indent in whitespaces

Method Details

AsOutliningRegionTag() public méthode

public AsOutliningRegionTag ( ) : TagSpan
Résultat TagSpan

AsSnapshotSpan() public méthode

public AsSnapshotSpan ( ) : SnapshotSpan
Résultat SnapshotSpan

ParseBuffer() public static méthode

parses buffer
public static ParseBuffer ( SnapshotParser parser, TextRegion parent ) : TextRegion
parser SnapshotParser
parent TextRegion parent region or null
Résultat TextRegion

TextRegion() public méthode

public TextRegion ( ) : System
Résultat System

TextRegion() public méthode

public TextRegion ( SnapshotPoint startPoint, TextRegionType type ) : System
startPoint SnapshotPoint
type TextRegionType
Résultat System

TryComplete() public méthode

tries to close region
public TryComplete ( SnapshotParser parser ) : bool
parser SnapshotParser parser
Résultat bool

TryCreateRegion() public static méthode

parses input buffer, searches for region start
public static TryCreateRegion ( SnapshotParser parser ) : TextRegion
parser SnapshotParser
Résultat TextRegion