C# Class NetIde.Core.TextEditor.TextEditorControl.TextEditorElementProvider.TextRangeProvider

Inheritance: ITextRangeProvider
Mostrar archivo Open project: netide/netide

Private Properties

Property Type Description
FindOffset int
GetAttributeValue object
GetColor int

Public Methods

Method Description
AddToSelection ( ) : void
Clone ( ) : ITextRangeProvider
Compare ( ITextRangeProvider range ) : bool
CompareEndpoints ( TextPatternRangeEndpoint endpoint, ITextRangeProvider targetRange, TextPatternRangeEndpoint targetEndpoint ) : int
ExpandToEnclosingUnit ( TextUnit unit ) : void
FindAttribute ( int attribute, object value, bool backward ) : ITextRangeProvider
FindText ( string text, bool backward, bool ignoreCase ) : ITextRangeProvider
GetAttributeValue ( int attribute ) : object
GetBoundingRectangles ( ) : double[]
GetChildren ( ) : System.Windows.Automation.Provider.IRawElementProviderSimple[]
GetEnclosingElement ( ) : System.Windows.Automation.Provider.IRawElementProviderSimple
GetText ( int maxLength ) : string
Move ( TextUnit unit, int count ) : int
MoveEndpointByRange ( TextPatternRangeEndpoint endpoint, ITextRangeProvider targetRange, TextPatternRangeEndpoint targetEndpoint ) : void
MoveEndpointByUnit ( TextPatternRangeEndpoint endpoint, TextUnit unit, int count ) : int
RemoveFromSelection ( ) : void
ScrollIntoView ( bool alignToTop ) : void
Select ( ) : void
TextRangeProvider ( TextEditorControl control, ISelection selection ) : System

Private Methods

Method Description
FindOffset ( int offset, TextUnit unit, bool forward ) : int
GetAttributeValue ( AutomationTextAttribute attribute ) : object
GetColor ( bool foreground ) : int

Method Details

AddToSelection() public method

public AddToSelection ( ) : void
return void

Clone() public method

public Clone ( ) : ITextRangeProvider
return ITextRangeProvider

Compare() public method

public Compare ( ITextRangeProvider range ) : bool
range ITextRangeProvider
return bool

CompareEndpoints() public method

public CompareEndpoints ( TextPatternRangeEndpoint endpoint, ITextRangeProvider targetRange, TextPatternRangeEndpoint targetEndpoint ) : int
endpoint TextPatternRangeEndpoint
targetRange ITextRangeProvider
targetEndpoint TextPatternRangeEndpoint
return int

ExpandToEnclosingUnit() public method

public ExpandToEnclosingUnit ( TextUnit unit ) : void
unit TextUnit
return void

FindAttribute() public method

public FindAttribute ( int attribute, object value, bool backward ) : ITextRangeProvider
attribute int
value object
backward bool
return ITextRangeProvider

FindText() public method

public FindText ( string text, bool backward, bool ignoreCase ) : ITextRangeProvider
text string
backward bool
ignoreCase bool
return ITextRangeProvider

GetAttributeValue() public method

public GetAttributeValue ( int attribute ) : object
attribute int
return object

GetBoundingRectangles() public method

public GetBoundingRectangles ( ) : double[]
return double[]

GetChildren() public method

public GetChildren ( ) : System.Windows.Automation.Provider.IRawElementProviderSimple[]
return System.Windows.Automation.Provider.IRawElementProviderSimple[]

GetEnclosingElement() public method

public GetEnclosingElement ( ) : System.Windows.Automation.Provider.IRawElementProviderSimple
return System.Windows.Automation.Provider.IRawElementProviderSimple

GetText() public method

public GetText ( int maxLength ) : string
maxLength int
return string

Move() public method

public Move ( TextUnit unit, int count ) : int
unit TextUnit
count int
return int

MoveEndpointByRange() public method

public MoveEndpointByRange ( TextPatternRangeEndpoint endpoint, ITextRangeProvider targetRange, TextPatternRangeEndpoint targetEndpoint ) : void
endpoint TextPatternRangeEndpoint
targetRange ITextRangeProvider
targetEndpoint TextPatternRangeEndpoint
return void

MoveEndpointByUnit() public method

public MoveEndpointByUnit ( TextPatternRangeEndpoint endpoint, TextUnit unit, int count ) : int
endpoint TextPatternRangeEndpoint
unit TextUnit
count int
return int

RemoveFromSelection() public method

public RemoveFromSelection ( ) : void
return void

ScrollIntoView() public method

public ScrollIntoView ( bool alignToTop ) : void
alignToTop bool
return void

Select() public method

public Select ( ) : void
return void

TextRangeProvider() public method

public TextRangeProvider ( TextEditorControl control, ISelection selection ) : System
control TextEditorControl
selection ISelection
return System