C# Class Acrolinx.Demo.Sidebar.TextBoxAdapter

TextBoxAdapter is a sample implementation of IAdapter . The TextBoxAdapter uses UniversalAdapter as base class, which simplifies the implementation since it already does some offset magic to adjust the guessed offsets to the actual offsets of the source.
Inheritance: Acrolinx.Sdk.Sidebar.Util.Adapter.UniversalAdapter
Datei anzeigen Open project: acrolinx/acrolinx-sidebar-demo-dotnet

Public Methods

Method Description
TextBoxAdapter ( string tagName, TextBox textBox, bool encodeContent ) : System

Protected Methods

Method Description
ExtractRaw ( ) : string
ReplaceRawRange ( IRange range, string replacement, System.Text.Format format ) : void
SelectRawRange ( IRange range, System.Text.Format format ) : void

Method Details

ExtractRaw() protected method

protected ExtractRaw ( ) : string
return string

ReplaceRawRange() protected method

protected ReplaceRawRange ( IRange range, string replacement, System.Text.Format format ) : void
range IRange
replacement string
format System.Text.Format
return void

SelectRawRange() protected method

protected SelectRawRange ( IRange range, System.Text.Format format ) : void
range IRange
format System.Text.Format
return void

TextBoxAdapter() public method

public TextBoxAdapter ( string tagName, TextBox textBox, bool encodeContent ) : System
tagName string
textBox System.Windows.Forms.TextBox
encodeContent bool
return System