C# Class ARCed.Scintilla.Utilities

Afficher le fichier Open project: borisblizzard/arcreator

Méthodes publiques

Méthode Description
ColorToHtml ( Color c ) : string

Returns an HTML #XXXXXX format for a color. Unlike the ColorTranslator class it never returns named colors.

ColorToRgb ( Color c ) : int
GetKeys ( char c ) : Keys
GetKeys ( string s ) : Keys
GetMarkerMask ( IEnumerable markers ) : uint
GetMarkerMask ( IEnumerable markers ) : uint
GetZeroTerminatedBytes ( string text, Encoding encoding ) : byte[]
IntPtrToString ( Encoding encoding, IntPtr ptr ) : string
IntPtrToString ( Encoding encoding, IntPtr ptr, int length ) : string

Marshals an IntPtr pointing to un unmanaged byte[] to a .NET String using the given Encoding.

I'd love to have this as en extension method but ARCed.Scintilla's probably going to be 2.0 for a long time to come. There's nothing really compelling in later versions that applies to ARCed.Scintilla that can't be done with a 2.0 construct (extension methods, linq, etc)

RgbToColor ( int color ) : Color
SignedHiWord ( IntPtr hiWord ) : int
SignedLoWord ( IntPtr loWord ) : int

Method Details

ColorToHtml() public static méthode

Returns an HTML #XXXXXX format for a color. Unlike the ColorTranslator class it never returns named colors.
public static ColorToHtml ( Color c ) : string
c Color
Résultat string

ColorToRgb() public static méthode

public static ColorToRgb ( Color c ) : int
c Color
Résultat int

GetKeys() public static méthode

public static GetKeys ( char c ) : Keys
c char
Résultat Keys

GetKeys() public static méthode

public static GetKeys ( string s ) : Keys
s string
Résultat Keys

GetMarkerMask() public static méthode

public static GetMarkerMask ( IEnumerable markers ) : uint
markers IEnumerable
Résultat uint

GetMarkerMask() public static méthode

public static GetMarkerMask ( IEnumerable markers ) : uint
markers IEnumerable
Résultat uint

GetZeroTerminatedBytes() public static méthode

public static GetZeroTerminatedBytes ( string text, Encoding encoding ) : byte[]
text string
encoding System.Text.Encoding
Résultat byte[]

IntPtrToString() public static méthode

public static IntPtrToString ( Encoding encoding, IntPtr ptr ) : string
encoding System.Text.Encoding
ptr System.IntPtr
Résultat string

IntPtrToString() public static méthode

Marshals an IntPtr pointing to un unmanaged byte[] to a .NET String using the given Encoding.
I'd love to have this as en extension method but ARCed.Scintilla's probably going to be 2.0 for a long time to come. There's nothing really compelling in later versions that applies to ARCed.Scintilla that can't be done with a 2.0 construct (extension methods, linq, etc)
public static IntPtrToString ( Encoding encoding, IntPtr ptr, int length ) : string
encoding System.Text.Encoding
ptr System.IntPtr
length int
Résultat string

RgbToColor() public static méthode

public static RgbToColor ( int color ) : Color
color int
Résultat Color

SignedHiWord() public static méthode

public static SignedHiWord ( IntPtr hiWord ) : int
hiWord System.IntPtr
Résultat int

SignedLoWord() public static méthode

public static SignedLoWord ( IntPtr loWord ) : int
loWord System.IntPtr
Résultat int