C# 클래스 ARCed.Scintilla.Utilities

파일 보기 프로젝트 열기: borisblizzard/arcreator

공개 메소드들

메소드 설명
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

메소드 상세

ColorToHtml() 공개 정적인 메소드

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
리턴 string

ColorToRgb() 공개 정적인 메소드

public static ColorToRgb ( Color c ) : int
c Color
리턴 int

GetKeys() 공개 정적인 메소드

public static GetKeys ( char c ) : Keys
c char
리턴 Keys

GetKeys() 공개 정적인 메소드

public static GetKeys ( string s ) : Keys
s string
리턴 Keys

GetMarkerMask() 공개 정적인 메소드

public static GetMarkerMask ( IEnumerable markers ) : uint
markers IEnumerable
리턴 uint

GetMarkerMask() 공개 정적인 메소드

public static GetMarkerMask ( IEnumerable markers ) : uint
markers IEnumerable
리턴 uint

GetZeroTerminatedBytes() 공개 정적인 메소드

public static GetZeroTerminatedBytes ( string text, Encoding encoding ) : byte[]
text string
encoding System.Text.Encoding
리턴 byte[]

IntPtrToString() 공개 정적인 메소드

public static IntPtrToString ( Encoding encoding, IntPtr ptr ) : string
encoding System.Text.Encoding
ptr System.IntPtr
리턴 string

IntPtrToString() 공개 정적인 메소드

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
리턴 string

RgbToColor() 공개 정적인 메소드

public static RgbToColor ( int color ) : Color
color int
리턴 Color

SignedHiWord() 공개 정적인 메소드

public static SignedHiWord ( IntPtr hiWord ) : int
hiWord System.IntPtr
리턴 int

SignedLoWord() 공개 정적인 메소드

public static SignedLoWord ( IntPtr loWord ) : int
loWord System.IntPtr
리턴 int