C# Class WPFParser.ExtensionMethods.RichTextBoxExtensions

Show file Open project: software-engineering-amsterdam/poly-ql

Public Methods

Method Description
GetColumnForTextPointer ( this rtb, TextPointer tp ) : int
GetLineForTextPointer ( this rtb, TextPointer tp ) : int
GetTextPointerForPosition ( this rtb, int>.Tuple position ) : TextPointer
GetTextPointerForPosition ( this rtb, int line, int column ) : TextPointer

Method Details

GetColumnForTextPointer() public static method

public static GetColumnForTextPointer ( this rtb, TextPointer tp ) : int
rtb this
tp System.Windows.Documents.TextPointer
return int

GetLineForTextPointer() public static method

public static GetLineForTextPointer ( this rtb, TextPointer tp ) : int
rtb this
tp System.Windows.Documents.TextPointer
return int

GetTextPointerForPosition() public static method

public static GetTextPointerForPosition ( this rtb, int>.Tuple position ) : TextPointer
rtb this
position int>.Tuple
return System.Windows.Documents.TextPointer

GetTextPointerForPosition() public static method

public static GetTextPointerForPosition ( this rtb, int line, int column ) : TextPointer
rtb this
line int
column int
return System.Windows.Documents.TextPointer