C# 클래스 ICSharpCode.AvalonEdit.Rendering.VisualLine

Represents a visual line in the document. A visual line usually corresponds to one DocumentLine, but it can span multiple lines if all but the first are collapsed.
파일 보기 프로젝트 열기: kjk/kjkpub 1 사용 예제들

공개 메소드들

메소드 설명
GetNextCaretPosition ( int visualColumn, LogicalDirection direction, CaretPositioningMode mode ) : int

Gets the next possible caret position after visualColumn, or -1 if there is no caret position.

GetRelativeOffset ( int visualColumn ) : int

Gets the document offset (relative to the first line start) from a visual column.

GetTextLine ( int visualColumn ) : System.Windows.Media.TextFormatting.TextLine

Gets the text line containing the specified visual column.

GetTextLineByVisualYPosition ( double visualTop ) : System.Windows.Media.TextFormatting.TextLine

Gets a TextLine by the visual position.

GetTextLineVisualStartColumn ( System.Windows.Media.TextFormatting.TextLine textLine ) : int

Gets the start visual column from the specified text line.

GetTextLineVisualYPosition ( System.Windows.Media.TextFormatting.TextLine textLine, VisualYPosition yPositionMode ) : double

Gets the visual top from the specified text line.

GetVisualColumn ( Point point ) : int

Gets the visual column from a document position (relative to top left of the document).

GetVisualColumn ( int relativeTextOffset ) : int

Gets the visual column from a document offset relative to the first line start.

GetVisualPosition ( int visualColumn, VisualYPosition yPositionMode ) : Point

Gets the visual position from the specified visualColumn.

비공개 메소드들

메소드 설명
CalculateOffsets ( System.Windows.Media.TextFormatting.TextRunProperties globalTextRunProperties ) : void
ConstructVisualElements ( ITextRunConstructionContext context, ICSharpCode.AvalonEdit.Rendering.VisualLineElementGenerator generators ) : void
HasImplicitStopAtLineEnd ( CaretPositioningMode mode ) : bool
HasImplicitStopAtLineStart ( CaretPositioningMode mode ) : bool
PerformVisualElementConstruction ( ICSharpCode.AvalonEdit.Rendering.VisualLineElementGenerator generators ) : void
RunTransformers ( ITextRunConstructionContext context, IVisualLineTransformer transformers ) : void
SetTextLines ( List textLines ) : void
VisualLine ( TextView textView, DocumentLine firstDocumentLine ) : System

메소드 상세

GetNextCaretPosition() 공개 메소드

Gets the next possible caret position after visualColumn, or -1 if there is no caret position.
public GetNextCaretPosition ( int visualColumn, LogicalDirection direction, CaretPositioningMode mode ) : int
visualColumn int
direction LogicalDirection
mode CaretPositioningMode
리턴 int

GetRelativeOffset() 공개 메소드

Gets the document offset (relative to the first line start) from a visual column.
public GetRelativeOffset ( int visualColumn ) : int
visualColumn int
리턴 int

GetTextLine() 공개 메소드

Gets the text line containing the specified visual column.
public GetTextLine ( int visualColumn ) : System.Windows.Media.TextFormatting.TextLine
visualColumn int
리턴 System.Windows.Media.TextFormatting.TextLine

GetTextLineByVisualYPosition() 공개 메소드

Gets a TextLine by the visual position.
public GetTextLineByVisualYPosition ( double visualTop ) : System.Windows.Media.TextFormatting.TextLine
visualTop double
리턴 System.Windows.Media.TextFormatting.TextLine

GetTextLineVisualStartColumn() 공개 메소드

Gets the start visual column from the specified text line.
public GetTextLineVisualStartColumn ( System.Windows.Media.TextFormatting.TextLine textLine ) : int
textLine System.Windows.Media.TextFormatting.TextLine
리턴 int

GetTextLineVisualYPosition() 공개 메소드

Gets the visual top from the specified text line.
public GetTextLineVisualYPosition ( System.Windows.Media.TextFormatting.TextLine textLine, VisualYPosition yPositionMode ) : double
textLine System.Windows.Media.TextFormatting.TextLine
yPositionMode VisualYPosition
리턴 double

GetVisualColumn() 공개 메소드

Gets the visual column from a document position (relative to top left of the document).
public GetVisualColumn ( Point point ) : int
point Point
리턴 int

GetVisualColumn() 공개 메소드

Gets the visual column from a document offset relative to the first line start.
public GetVisualColumn ( int relativeTextOffset ) : int
relativeTextOffset int
리턴 int

GetVisualPosition() 공개 메소드

Gets the visual position from the specified visualColumn.
public GetVisualPosition ( int visualColumn, VisualYPosition yPositionMode ) : Point
visualColumn int
yPositionMode VisualYPosition
리턴 Point