C# Класс YamuiFramework.Helper.Utilities

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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