C# Class Scintilla.ScintillaControl

Mostrar archivo Open project: adventuregamestudio/ags Class Usage Examples

Public Methods

Method Description
AutoCSetFillups ( string fillupKeys ) : void
CallTipSetForeHlt ( System.Color color ) : void
CallTipUseStyle ( int tabSize ) : void
ConvertEOLs ( EndOfLine eolMode ) : void

Convert all line endings in the document to one mode.

GetCharAt ( int position ) : int
GetLine ( int line ) : string

Retrieve the contents of a line. Returns the length of the line.

GetLineIndentation ( int line ) : int
GetLineIndentationPosition ( int line ) : int

Gets the caret position at the end of indentation on the specified line

GetStyleAt ( int position ) : int
InsideString ( bool charJustAdded, int position ) : bool
ScintillaControl ( ) : System
SetClassListHighlightedWords ( string keywords ) : void
SetFolding ( ) : void
SetIndentationGuides ( int flag ) : void
SetKeyWords ( string keywords ) : void
SetLexer ( Lexer lexer ) : void
SetLineIndentation ( int line, int indentation ) : void
SetMarginSensitivity ( int margin, int flag ) : void
SetMarginType ( int margin, MarginType marginType ) : void
SetMarginWidth ( int margin, int width ) : void
SetSelBack ( bool useSetting, Color back ) : void
SetSelFore ( bool useSetting, Color fore ) : void
SetStyle ( Scintilla style, Color fore, Color back, bool bold, bool italic, string font, int fontSize ) : void
StyleDialog ( SCNotification notify ) : void
StyleSetBack ( Scintilla syntaxType, Color value ) : void
StyleSetBold ( Scintilla syntaxType, bool bold ) : void
StyleSetFont ( int style, string font ) : void
StyleSetFontSize ( int style, int fontSize ) : void
StyleSetFore ( Scintilla syntaxType, Color value ) : void
previousWordFrom ( int from ) : string

Protected Methods

Method Description
DispatchScintillaEvent ( Scintilla.SCNotification notification ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
SendMessageDirect ( uint msg, IntPtr wParam, IntPtr lParam ) : IntPtr

This is the primary Native communication method with Scintilla used by this control. All the other overloads call into this one.

SendMessageDirect ( uint msg ) : int

Handles Scintilla Call Style: (,)

SendMessageDirect ( uint msg, IntPtr wParam, string &text, int length ) : int

Handles Scintilla Call Style: (?) Notes: Helper method to wrap all calls to messages that take a char* in the wParam and set a regular .NET String in the lParam. Both the length of the string and an additional wParam are used so that various string Message styles can be acommodated.

SendMessageDirect ( uint msg, VOID NULL, int lParam ) : int

Handles Scintilla Call Style: (,int)

SendMessageDirect ( uint msg, VOID NULL, string lParam ) : int

Handles Scintilla Call Style: (,string) Notes: This helper method handles all messages that take const char* as an input string in the lParam. In some messages Scintilla expects a NULL terminated string and in others it depends on the string length passed in as wParam. This method handles both situations and will NULL terminate the string either way.

SendMessageDirect ( uint msg, bool wParam ) : int

Handles Scintilla Call Style: (bool,)

SendMessageDirect ( uint msg, bool wParam, int lParam ) : int

Handles Scintilla Call Style: (bool,int)

SendMessageDirect ( uint msg, int wParam ) : int

Handles Scintilla Call Style: (int,)

SendMessageDirect ( uint msg, int wParam, bool lParam ) : int

Handles Scintilla Call Style: (int,bool)

SendMessageDirect ( uint msg, int wParam, int lParam ) : int

Handles Scintilla Call Style: (int,int)

SendMessageDirect ( uint msg, int wParam, string &text ) : int

Handles Scintilla Call Style: (int,stringresult) Notes: Helper method to wrap all calls to messages that take a char* in the lParam and returns a regular .NET String. This overload assumes there will be no wParam and obtains the string length by calling the message with a 0 lParam.

SendMessageDirect ( uint msg, string &text ) : int

Handles Scintilla Call Style: (,stringresult) Notes: Helper method to wrap all calls to messages that take a char* in the lParam and returns a regular .NET String. This overload assumes there will be no wParam and obtains the string length by calling the message with a 0 lParam.

SendMessageDirect ( uint msg, string wParam, int lParam ) : int

Handles Scintilla Call Style: (string,int)

SendMessageDirect ( uint msg, string wParam, string lParam ) : int

Handles Scintilla Call Style: (string,string) Notes: Used by SCI_SETPROPERTY

Style ( int linenum, int end ) : void
StyleSetItalic ( Lexers style, bool italic ) : void
ZeroTerminated ( string param ) : String
isNumeric ( char token ) : bool
isOperator ( char token ) : bool

Method Details

AutoCSetFillups() public method

public AutoCSetFillups ( string fillupKeys ) : void
fillupKeys string
return void

CallTipSetForeHlt() public method

public CallTipSetForeHlt ( System.Color color ) : void
color System.Color
return void

CallTipUseStyle() public method

public CallTipUseStyle ( int tabSize ) : void
tabSize int
return void

ConvertEOLs() public method

Convert all line endings in the document to one mode.
public ConvertEOLs ( EndOfLine eolMode ) : void
eolMode EndOfLine
return void

DispatchScintillaEvent() protected method

protected DispatchScintillaEvent ( Scintilla.SCNotification notification ) : void
notification Scintilla.SCNotification
return void

GetCharAt() public method

public GetCharAt ( int position ) : int
position int
return int

GetLine() public method

Retrieve the contents of a line. Returns the length of the line.
public GetLine ( int line ) : string
line int
return string

GetLineIndentation() public method

public GetLineIndentation ( int line ) : int
line int
return int

GetLineIndentationPosition() public method

Gets the caret position at the end of indentation on the specified line
public GetLineIndentationPosition ( int line ) : int
line int
return int

GetStyleAt() public method

public GetStyleAt ( int position ) : int
position int
return int

InsideString() public method

public InsideString ( bool charJustAdded, int position ) : bool
charJustAdded bool
position int
return bool

ScintillaControl() public method

public ScintillaControl ( ) : System
return System

SetClassListHighlightedWords() public method

public SetClassListHighlightedWords ( string keywords ) : void
keywords string
return void

SetFolding() public method

public SetFolding ( ) : void
return void

SetIndentationGuides() public method

public SetIndentationGuides ( int flag ) : void
flag int
return void

SetKeyWords() public method

public SetKeyWords ( string keywords ) : void
keywords string
return void

SetLexer() public method

public SetLexer ( Lexer lexer ) : void
lexer Lexer
return void

SetLineIndentation() public method

public SetLineIndentation ( int line, int indentation ) : void
line int
indentation int
return void

SetMarginSensitivity() public method

public SetMarginSensitivity ( int margin, int flag ) : void
margin int
flag int
return void

SetMarginType() public method

public SetMarginType ( int margin, MarginType marginType ) : void
margin int
marginType MarginType
return void

SetMarginWidth() public method

public SetMarginWidth ( int margin, int width ) : void
margin int
width int
return void

SetSelBack() public method

public SetSelBack ( bool useSetting, Color back ) : void
useSetting bool
back Color
return void

SetSelFore() public method

public SetSelFore ( bool useSetting, Color fore ) : void
useSetting bool
fore Color
return void

SetStyle() public method

public SetStyle ( Scintilla style, Color fore, Color back, bool bold, bool italic, string font, int fontSize ) : void
style Scintilla
fore Color
back Color
bold bool
italic bool
font string
fontSize int
return void

StyleDialog() public method

public StyleDialog ( SCNotification notify ) : void
notify SCNotification
return void

StyleSetBack() public method

public StyleSetBack ( Scintilla syntaxType, Color value ) : void
syntaxType Scintilla
value Color
return void

StyleSetBold() public method

public StyleSetBold ( Scintilla syntaxType, bool bold ) : void
syntaxType Scintilla
bold bool
return void

StyleSetFont() public method

public StyleSetFont ( int style, string font ) : void
style int
font string
return void

StyleSetFontSize() public method

public StyleSetFontSize ( int style, int fontSize ) : void
style int
fontSize int
return void

StyleSetFore() public method

public StyleSetFore ( Scintilla syntaxType, Color value ) : void
syntaxType Scintilla
value Color
return void

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void

previousWordFrom() public method

public previousWordFrom ( int from ) : string
from int
return string