C# 클래스 YamuiFramework.Helper.Utilities

파일 보기 프로젝트 열기: jcaillon/3P

공개 프로퍼티들

프로퍼티 타입 설명
KeyPressValidChars char[]>.Dictionary
SimpleTypes Type[]
Validations Predicate>.Dictionary

공개 메소드들

메소드 설명
ForEachLine ( string filePath, byte dataResources, string>.Action toApplyOnEachLine, Encoding encoding, Action onException ) : bool

Reads all the line of either the filePath (if the file exists) or from byte array dataResources, Apply the action toApplyOnEachLine to each line Uses encoding as the Encoding to read the file or convert the byte array to a string Uses the char # as a comment in the file

GetAll ( Control control, Type type ) : IEnumerable

List all the controls children of "control" of type "type" this is recursive, so it find them all

GetCultureChars ( bool digits, bool neg, bool pos, bool dec = false, bool grp = false, bool e = false ) : char[]
GetCultureChars ( bool timeChars, bool timeSep, bool dateSep, char other ) : char[]
GetFirst ( Control control, Type type ) : Control

Get the first control of the type type it can find

IsInvalidKey ( char keyChar, Type itemType ) : bool
IsSimpleType ( this type ) : bool
IsSupportedType ( Type type ) : bool
MeasureHtmlPrefWidth ( string htmlContent, int minWidth, int maxWidth ) : int

Returns a fair width in which an html can be displayed

비공개 메소드들

메소드 설명
SubForEachLine ( string filePath, byte dataResources, string>.Action toApplyOnEachLine, Encoding encoding ) : void

메소드 상세

ForEachLine() 공개 정적인 메소드

Reads all the line of either the filePath (if the file exists) or from byte array dataResources, Apply the action toApplyOnEachLine to each line Uses encoding as the Encoding to read the file or convert the byte array to a string Uses the char # as a comment in the file
public static ForEachLine ( string filePath, byte dataResources, string>.Action toApplyOnEachLine, Encoding encoding, Action onException ) : bool
filePath string
dataResources byte
toApplyOnEachLine string>.Action
encoding Encoding
onException Action
리턴 bool

GetAll() 공개 정적인 메소드

List all the controls children of "control" of type "type" this is recursive, so it find them all
public static GetAll ( Control control, Type type ) : IEnumerable
control Control
type Type
리턴 IEnumerable

GetCultureChars() 공개 정적인 메소드

public static GetCultureChars ( bool digits, bool neg, bool pos, bool dec = false, bool grp = false, bool e = false ) : char[]
digits bool
neg bool
pos bool
dec bool
grp bool
e bool
리턴 char[]

GetCultureChars() 공개 정적인 메소드

public static GetCultureChars ( bool timeChars, bool timeSep, bool dateSep, char other ) : char[]
timeChars bool
timeSep bool
dateSep bool
other char
리턴 char[]

GetFirst() 공개 정적인 메소드

Get the first control of the type type it can find
public static GetFirst ( Control control, Type type ) : Control
control Control
type Type
리턴 Control

IsInvalidKey() 공개 정적인 메소드

public static IsInvalidKey ( char keyChar, Type itemType ) : bool
keyChar char
itemType Type
리턴 bool

IsSimpleType() 공개 정적인 메소드

public static IsSimpleType ( this type ) : bool
type this
리턴 bool

IsSupportedType() 공개 정적인 메소드

public static IsSupportedType ( Type type ) : bool
type Type
리턴 bool

MeasureHtmlPrefWidth() 공개 정적인 메소드

Returns a fair width in which an html can be displayed
public static MeasureHtmlPrefWidth ( string htmlContent, int minWidth, int maxWidth ) : int
htmlContent string
minWidth int
maxWidth int
리턴 int

프로퍼티 상세

KeyPressValidChars 공개적으로 정적으로 프로퍼티

public static Dictionary KeyPressValidChars
리턴 char[]>.Dictionary

SimpleTypes 공개적으로 정적으로 프로퍼티

public static Type[] SimpleTypes
리턴 Type[]

Validations 공개적으로 정적으로 프로퍼티

public static Dictionary> Validations
리턴 Predicate>.Dictionary