Table of Contents

Class Converter

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll
public static class Converter
Inheritance
Converter
Inherited Members

Properties

GetAllEqualsToVisible

public static MultiConverterBase<object, Visibility> GetAllEqualsToVisible { get; }

Property Value

MultiConverterBase<object, Visibility>

GetAllFile

public static ConverterBase<string, List<string>> GetAllFile { get; }

Property Value

ConverterBase<string, List<string>>

GetAllTrueToVisible

public static MultiConverterBase<bool, Visibility> GetAllTrueToVisible { get; }

Property Value

MultiConverterBase<bool, Visibility>

GetBoolNullAndTrueToVisble

public static ConverterBase<bool?, Visibility> GetBoolNullAndTrueToVisble { get; }

Property Value

ConverterBase<bool?, Visibility>

GetBoolNullBrushDefaultGray

public static ConverterBase<bool?, Brush> GetBoolNullBrushDefaultGray { get; }

Property Value

ConverterBase<bool?, Brush>

GetBoolNullFalseToVisble

public static ConverterBase<bool?, Visibility> GetBoolNullFalseToVisble { get; }

Property Value

ConverterBase<bool?, Visibility>

GetBoolenBrush

public static ConverterBase<bool, Brush> GetBoolenBrush { get; }

Property Value

ConverterBase<bool, Brush>

GetBoolenNullBrush

public static ConverterBase<bool?, Brush> GetBoolenNullBrush { get; }

Property Value

ConverterBase<bool?, Brush>

GetBoolenNullToConnectState

public static ConverterBase<bool?, string> GetBoolenNullToConnectState { get; }

Property Value

ConverterBase<bool?, string>

GetBoolenToConnectState

public static ConverterBase<bool, string> GetBoolenToConnectState { get; }

Property Value

ConverterBase<bool, string>

GetBoolenToPassState

public static ConverterBase<bool, string> GetBoolenToPassState { get; }

Property Value

ConverterBase<bool, string>

GetChangeExtension

public static ConverterBase<string, string, string> GetChangeExtension { get; }

Property Value

ConverterBase<string, string, string>

GetColorToSolidColorBrush

public static ConverterBase<Color, SolidColorBrush> GetColorToSolidColorBrush { get; }

Property Value

ConverterBase<Color, SolidColorBrush>

GetCommandDisplayers

public static ConverterBase<object, IList<Displayer<ICommand>>> GetCommandDisplayers { get; }

Property Value

ConverterBase<object, IList<Displayer<ICommand>>>

GetComparable

public static ConverterBase<IComparable, IComparable, int> GetComparable { get; }

Property Value

ConverterBase<IComparable, IComparable, int>

GetComparableAllTrueToVisible

public static MultiConverterBase<IComparable, Visibility> GetComparableAllTrueToVisible { get; }

Property Value

MultiConverterBase<IComparable, Visibility>

GetDateTimeParseExact

public static ConverterBase<string, DateTime> GetDateTimeParseExact { get; }

Property Value

ConverterBase<string, DateTime>

GetDateTimeToAddDays

public static ConverterBase<DateTime, double, DateTime> GetDateTimeToAddDays { get; }

Property Value

ConverterBase<DateTime, double, DateTime>

GetDateTimeToAddHours

public static ConverterBase<DateTime, double, DateTime> GetDateTimeToAddHours { get; }

Property Value

ConverterBase<DateTime, double, DateTime>

GetDateTimeToAddMilliseconds

public static ConverterBase<DateTime, double, DateTime> GetDateTimeToAddMilliseconds { get; }

Property Value

ConverterBase<DateTime, double, DateTime>

GetDateTimeToAddMonths

public static ConverterBase<DateTime, int, DateTime> GetDateTimeToAddMonths { get; }

Property Value

ConverterBase<DateTime, int, DateTime>

GetDateTimeToAddSeconds

public static ConverterBase<DateTime, double, DateTime> GetDateTimeToAddSeconds { get; }

Property Value

ConverterBase<DateTime, double, DateTime>

GetDateTimeToAddTicks

public static ConverterBase<DateTime, long, DateTime> GetDateTimeToAddTicks { get; }

Property Value

ConverterBase<DateTime, long, DateTime>

GetDateTimeToAddYears

public static ConverterBase<DateTime, int, DateTime> GetDateTimeToAddYears { get; }

Property Value

ConverterBase<DateTime, int, DateTime>

GetDateTimeToDate

public static ConverterBase<DateTime, DateTime> GetDateTimeToDate { get; }

Property Value

ConverterBase<DateTime, DateTime>

GetDateTimeToDateString

public static ConverterBase<DateTime, string> GetDateTimeToDateString { get; }

Property Value

ConverterBase<DateTime, string>

GetDateTimeToString

public static ConverterBase<DateTime, string> GetDateTimeToString { get; }

Property Value

ConverterBase<DateTime, string>

GetDateTimeToTicks

public static ConverterBase<DateTime, long> GetDateTimeToTicks { get; }

Property Value

ConverterBase<DateTime, long>

GetDiaplayDescription

public static ConverterBase<object, string> GetDiaplayDescription { get; }

Property Value

ConverterBase<object, string>

GetDiaplayName

public static ConverterBase<object, string> GetDiaplayName { get; }

Property Value

ConverterBase<object, string>

GetDirectoryCreationTime

public static ConverterBase<string, DateTime> GetDirectoryCreationTime { get; }

Property Value

ConverterBase<string, DateTime>

GetDirectoryDirectories

public static ConverterBase<string, string[]> GetDirectoryDirectories { get; }

Property Value

ConverterBase<string, string[]>

GetDirectoryExists

public static ConverterBase<string, bool> GetDirectoryExists { get; }

Property Value

ConverterBase<string, bool>

GetDirectoryFileSystemEntries

public static ConverterBase<string, string[]> GetDirectoryFileSystemEntries { get; }

Property Value

ConverterBase<string, string[]>

GetDirectoryFiles

public static ConverterBase<string, string[]> GetDirectoryFiles { get; }

Property Value

ConverterBase<string, string[]>

GetDirectoryLastAccessTime

public static ConverterBase<string, DateTime> GetDirectoryLastAccessTime { get; }

Property Value

ConverterBase<string, DateTime>

GetDirectoryLastWriteTime

public static ConverterBase<string, DateTime> GetDirectoryLastWriteTime { get; }

Property Value

ConverterBase<string, DateTime>

GetDirectoryName

public static ConverterBase<string, string> GetDirectoryName { get; }

Property Value

ConverterBase<string, string>

GetDirectoryParent

public static ConverterBase<string, DirectoryInfo> GetDirectoryParent { get; }

Property Value

ConverterBase<string, DirectoryInfo>

GetDoubleToCornerRadius

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadius { get; }

Property Value

ConverterBase<double, CornerRadius>

GetDoubleToCornerRadiusBottm

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadiusBottm { get; }

Property Value

ConverterBase<double, CornerRadius>

GetDoubleToCornerRadiusLeft

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadiusLeft { get; }

Property Value

ConverterBase<double, CornerRadius>

GetDoubleToCornerRadiusLeftBottom

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadiusLeftBottom { get; }

Property Value

ConverterBase<double, CornerRadius>

GetDoubleToCornerRadiusLeftTop

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadiusLeftTop { get; }

Property Value

ConverterBase<double, CornerRadius>

GetDoubleToCornerRadiusRightBottom

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadiusRightBottom { get; }

Property Value

ConverterBase<double, CornerRadius>

GetDoubleToCornerRadiusRightTop

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadiusRightTop { get; }

Property Value

ConverterBase<double, CornerRadius>

GetDoubleToCornerRadiusRigth

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadiusRigth { get; }

Property Value

ConverterBase<double, CornerRadius>

GetDoubleToCornerRadiusTop

public static ConverterBase<double, CornerRadius> GetDoubleToCornerRadiusTop { get; }

Property Value

ConverterBase<double, CornerRadius>

GetExtension

public static ConverterBase<string, string> GetExtension { get; }

Property Value

ConverterBase<string, string>

GetFalse

public static ConverterBase<object, bool> GetFalse { get; }

Property Value

ConverterBase<object, bool>

GetFalseToHidden

public static ConverterBase<bool, Visibility> GetFalseToHidden { get; }

Property Value

ConverterBase<bool, Visibility>

GetFileCreationTime

public static ConverterBase<string, DateTime> GetFileCreationTime { get; }

Property Value

ConverterBase<string, DateTime>

GetFileExists

public static ConverterBase<string, bool> GetFileExists { get; }

Property Value

ConverterBase<string, bool>

GetFileFileAttributes

public static ConverterBase<string, FileAttributes> GetFileFileAttributes { get; }

Property Value

ConverterBase<string, FileAttributes>

GetFileImageSource

public static ConverterBase<string, ImageSource> GetFileImageSource { get; }

Property Value

ConverterBase<string, ImageSource>

GetFileImageSourceInMemory

public static ConverterBase<string, int, ImageSource> GetFileImageSourceInMemory { get; }

Property Value

ConverterBase<string, int, ImageSource>

GetFileLastAccessTime

public static ConverterBase<string, DateTime> GetFileLastAccessTime { get; }

Property Value

ConverterBase<string, DateTime>

GetFileLength

public static ConverterBase<string, long> GetFileLength { get; }

Property Value

ConverterBase<string, long>

GetFileLengthDisplay

public static ConverterBase<string, string> GetFileLengthDisplay { get; }

Property Value

ConverterBase<string, string>

GetFileName

public static ConverterBase<string, string> GetFileName { get; }

Property Value

ConverterBase<string, string>

GetFileNameWithoutExtension

public static ConverterBase<string, string> GetFileNameWithoutExtension { get; }

Property Value

ConverterBase<string, string>

GetFileReadAllText

public static ConverterBase<string, string> GetFileReadAllText { get; }

Property Value

ConverterBase<string, string>

GetFullPath

public static ConverterBase<string, string> GetFullPath { get; }

Property Value

ConverterBase<string, string>

GetGreaterThan

public static ConverterBase<double, double, bool> GetGreaterThan { get; }

Property Value

ConverterBase<double, double, bool>

GetHasExtension

public static ConverterBase<string, bool> GetHasExtension { get; }

Property Value

ConverterBase<string, bool>

GetIConvertibler

public static IConvertibleConverter GetIConvertibler { get; }

Property Value

IConvertibleConverter

GetIEnumerableCast

public static IEnumerableTypeConverterBase<object, int> GetIEnumerableCast { get; }

Property Value

IEnumerableTypeConverterBase<object, int>

GetIEnumerableCount

public static IEnumerableConverterBase<object, object> GetIEnumerableCount { get; }

Property Value

IEnumerableConverterBase<object, object>

GetIEnumerableDistinct

public static IEnumerableTypeConverterBase<object> GetIEnumerableDistinct { get; }

Property Value

IEnumerableTypeConverterBase<object>

GetIEnumerableElementAt

public static IEnumerableTypeConverterBase<object, int> GetIEnumerableElementAt { get; }

Property Value

IEnumerableTypeConverterBase<object, int>

GetIEnumerableExcept

public static IEnumerableTypeConverterBase<object, IEnumerable<object>> GetIEnumerableExcept { get; }

Property Value

IEnumerableTypeConverterBase<object, IEnumerable<object>>

GetIEnumerableFirstOrDefault

public static IEnumerableConverterBase<object, object> GetIEnumerableFirstOrDefault { get; }

Property Value

IEnumerableConverterBase<object, object>

GetIEnumerableLastOrDefault

public static IEnumerableConverterBase<object, object> GetIEnumerableLastOrDefault { get; }

Property Value

IEnumerableConverterBase<object, object>

GetIEnumerableMax

public static IEnumerableConverterBase<object, object> GetIEnumerableMax { get; }

Property Value

IEnumerableConverterBase<object, object>

GetIEnumerableMin

public static IEnumerableConverterBase<object, object> GetIEnumerableMin { get; }

Property Value

IEnumerableConverterBase<object, object>

GetIEnumerablePropertyList

public static IEnumerableConverterBase<object, string, object> GetIEnumerablePropertyList { get; }

Property Value

IEnumerableConverterBase<object, string, object>

GetIEnumerableReverse

public static IEnumerableTypeConverterBase<object> GetIEnumerableReverse { get; }

Property Value

IEnumerableTypeConverterBase<object>

GetIEnumerableTake

public static IEnumerableTypeConverterBase<object, int> GetIEnumerableTake { get; }

Property Value

IEnumerableTypeConverterBase<object, int>

GetImagePixelDisplay

public static ConverterBase<string, string> GetImagePixelDisplay { get; }

Property Value

ConverterBase<string, string>

GetIntBrush

public static ConverterBase<int, Brush> GetIntBrush { get; }

Property Value

ConverterBase<int, Brush>

GetIntLessZeroString

public static ConverterBase<int, string, string> GetIntLessZeroString { get; }

Property Value

ConverterBase<int, string, string>

GetIntToBoolen

public static ConverterBase<int, bool> GetIntToBoolen { get; }

Property Value

ConverterBase<int, bool>

GetIntToCollapsed

public static ConverterBase<int, int, Visibility> GetIntToCollapsed { get; }

Property Value

ConverterBase<int, int, Visibility>

GetIntToVisible

public static ConverterBase<int, int, Visibility> GetIntToVisible { get; }

Property Value

ConverterBase<int, int, Visibility>

GetIsAbstract

public static ConverterBase<object, bool> GetIsAbstract { get; }

Property Value

ConverterBase<object, bool>

GetIsArray

public static ConverterBase<object, bool> GetIsArray { get; }

Property Value

ConverterBase<object, bool>

GetIsAssignableFrom

public static ConverterBase<object, Type, bool> GetIsAssignableFrom { get; }

Property Value

ConverterBase<object, Type, bool>

GetIsClass

public static ConverterBase<object, bool> GetIsClass { get; }

Property Value

ConverterBase<object, bool>

GetIsEnum

public static ConverterBase<object, bool> GetIsEnum { get; }

Property Value

ConverterBase<object, bool>

GetIsGenericType

public static ConverterBase<object, bool> GetIsGenericType { get; }

Property Value

ConverterBase<object, bool>

GetIsValueType

public static ConverterBase<object, bool> GetIsValueType { get; }

Property Value

ConverterBase<object, bool>

GetLessThan

public static ConverterBase<double, double, bool> GetLessThan { get; }

Property Value

ConverterBase<double, double, bool>

GetListEmptyToCollapsed

public static ConverterBase<IList, Visibility> GetListEmptyToCollapsed { get; }

Property Value

ConverterBase<IList, Visibility>

GetListEmptyToVisible

public static ConverterBase<IList, Visibility> GetListEmptyToVisible { get; }

Property Value

ConverterBase<IList, Visibility>

GetMathAbs

public static ConverterBase<double, double> GetMathAbs { get; }

Property Value

ConverterBase<double, double>

GetMathAddition

public static ConverterBase<double, double, double> GetMathAddition { get; }

Property Value

ConverterBase<double, double, double>

GetMathCos

public static ConverterBase<double, double> GetMathCos { get; }

Property Value

ConverterBase<double, double>

GetMathExp

public static ConverterBase<double, double> GetMathExp { get; }

Property Value

ConverterBase<double, double>

GetMathFloor

public static ConverterBase<double, double> GetMathFloor { get; }

Property Value

ConverterBase<double, double>

GetMathLog

public static ConverterBase<double, double> GetMathLog { get; }

Property Value

ConverterBase<double, double>

GetMathMax

public static ConverterBase<double, double, double> GetMathMax { get; }

Property Value

ConverterBase<double, double, double>

GetMathMin

public static ConverterBase<double, double, double> GetMathMin { get; }

Property Value

ConverterBase<double, double, double>

GetMathMultiplication

public static ConverterBase<double, double, double> GetMathMultiplication { get; }

Property Value

ConverterBase<double, double, double>

GetMathPow

public static ConverterBase<double, double, double> GetMathPow { get; }

Property Value

ConverterBase<double, double, double>

GetMathRound

public static ConverterBase<double, int, double> GetMathRound { get; }

Property Value

ConverterBase<double, int, double>

GetMathSin

public static ConverterBase<double, double> GetMathSin { get; }

Property Value

ConverterBase<double, double>

GetMathSqrt

public static ConverterBase<double, double> GetMathSqrt { get; }

Property Value

ConverterBase<double, double>

GetMathTan

public static ConverterBase<double, double> GetMathTan { get; }

Property Value

ConverterBase<double, double>

GetNullToCollapsed

public static ConverterBase<object, Visibility> GetNullToCollapsed { get; }

Property Value

ConverterBase<object, Visibility>

GetNullToFalse

public static ConverterBase<object, bool> GetNullToFalse { get; }

Property Value

ConverterBase<object, bool>

GetNullToVisible

public static ConverterBase<object, Visibility> GetNullToVisible { get; }

Property Value

ConverterBase<object, Visibility>

GetObjType

public static ConverterBase<object, Type> GetObjType { get; }

Property Value

ConverterBase<object, Type>

GetObjTypeFullName

public static ConverterBase<object, string> GetObjTypeFullName { get; }

Property Value

ConverterBase<object, string>

GetObjTypeName

public static ConverterBase<object, string> GetObjTypeName { get; }

Property Value

ConverterBase<object, string>

GetPassStateBrush

public static ConverterBase<string, Brush> GetPassStateBrush { get; }

Property Value

ConverterBase<string, Brush>

GetPathRoot

public static ConverterBase<string, string> GetPathRoot { get; }

Property Value

ConverterBase<string, string>

GetSolidColorBrushToColor

public static ConverterBase<SolidColorBrush, Color> GetSolidColorBrushToColor { get; }

Property Value

ConverterBase<SolidColorBrush, Color>

GetStateBrush

public static ConverterBase<string, Brush> GetStateBrush { get; }

Property Value

ConverterBase<string, Brush>

GetStateColor

public static ConverterBase<string, Color> GetStateColor { get; }

Property Value

ConverterBase<string, Color>

GetStringContains

public static ConverterBase<string, string, bool> GetStringContains { get; }

Property Value

ConverterBase<string, string, bool>

GetStringEndsWith

public static ConverterBase<string, string, bool> GetStringEndsWith { get; }

Property Value

ConverterBase<string, string, bool>

GetStringFormat

public static ConverterBase<object, string, string> GetStringFormat { get; }

Property Value

ConverterBase<object, string, string>

GetStringIsNullOrEmpty

public static ConverterBase<string, bool> GetStringIsNullOrEmpty { get; }

Property Value

ConverterBase<string, bool>

GetStringJoin

public static ConverterBase<string[], string, string> GetStringJoin { get; }

Property Value

ConverterBase<string[], string, string>

GetStringPadLeft

public static ConverterBase<string, int, string> GetStringPadLeft { get; }

Property Value

ConverterBase<string, int, string>

GetStringPadRight

public static ConverterBase<string, int, string> GetStringPadRight { get; }

Property Value

ConverterBase<string, int, string>

GetStringSplit

public static ConverterBase<string, char[], string[]> GetStringSplit { get; }

Property Value

ConverterBase<string, char[], string[]>

GetStringStartsWith

public static ConverterBase<string, string, bool> GetStringStartsWith { get; }

Property Value

ConverterBase<string, string, bool>

GetStringSubstring

public static ConverterBase<string, int, string> GetStringSubstring { get; }

Property Value

ConverterBase<string, int, string>

GetStringToCharArray

public static ConverterBase<string, char[]> GetStringToCharArray { get; }

Property Value

ConverterBase<string, char[]>

GetStringToLower

public static ConverterBase<string, string> GetStringToLower { get; }

Property Value

ConverterBase<string, string>

GetStringToUpper

public static ConverterBase<string, string> GetStringToUpper { get; }

Property Value

ConverterBase<string, string>

GetStringTrim

public static ConverterBase<string, string> GetStringTrim { get; }

Property Value

ConverterBase<string, string>

GetTimeSpanStr

public static ConverterBase<TimeSpan, string> GetTimeSpanStr { get; }

Property Value

ConverterBase<TimeSpan, string>

GetTimeSpanStrFromDays

public static ConverterBase<int, string> GetTimeSpanStrFromDays { get; }

Property Value

ConverterBase<int, string>

GetTimeSpanStrFromHours

public static ConverterBase<int, string> GetTimeSpanStrFromHours { get; }

Property Value

ConverterBase<int, string>

GetTimeSpanStrFromMilliseconds

public static ConverterBase<int, string> GetTimeSpanStrFromMilliseconds { get; }

Property Value

ConverterBase<int, string>

GetTimeSpanStrFromMinutes

public static ConverterBase<int, string> GetTimeSpanStrFromMinutes { get; }

Property Value

ConverterBase<int, string>

GetTimeSpanStrFromSeconds

public static ConverterBase<int, string> GetTimeSpanStrFromSeconds { get; }

Property Value

ConverterBase<int, string>

GetTimeSpanStrFromTicks

public static ConverterBase<long, string> GetTimeSpanStrFromTicks { get; }

Property Value

ConverterBase<long, string>

GetTreeViewItemContainSelected

public static ConverterBase<TreeViewItem, bool> GetTreeViewItemContainSelected { get; }

Property Value

ConverterBase<TreeViewItem, bool>

GetTreeViewItemLevel

public static ConverterBase<TreeViewItem, int> GetTreeViewItemLevel { get; }

Property Value

ConverterBase<TreeViewItem, int>

GetTreeViewItemMargin

public static ConverterBase<TreeViewItem, double, Thickness> GetTreeViewItemMargin { get; }

Property Value

ConverterBase<TreeViewItem, double, Thickness>

GetTrue

public static ConverterBase<object, bool> GetTrue { get; }

Property Value

ConverterBase<object, bool>

GetTrueAllToVisible

public static MultiConverterBase<bool, Visibility> GetTrueAllToVisible { get; }

Property Value

MultiConverterBase<bool, Visibility>

GetTrueToCollapsed

public static ConverterBase<bool, Visibility> GetTrueToCollapsed { get; }

Property Value

ConverterBase<bool, Visibility>

GetTrueToFalse

public static ConverterBase<bool, bool> GetTrueToFalse { get; }

Property Value

ConverterBase<bool, bool>

GetTrueToHidden

public static ConverterBase<bool, Visibility> GetTrueToHidden { get; }

Property Value

ConverterBase<bool, Visibility>

GetTrueToVisible

public static ConverterBase<bool, Visibility> GetTrueToVisible { get; }

Property Value

ConverterBase<bool, Visibility>

GetUri

public static ConverterBase<string, Uri> GetUri { get; }

Property Value

ConverterBase<string, Uri>

GetUriAbsolute

public static ConverterBase<string, Uri> GetUriAbsolute { get; }

Property Value

ConverterBase<string, Uri>

GetUriRelative

public static ConverterBase<string, Uri> GetUriRelative { get; }

Property Value

ConverterBase<string, Uri>

IsInterface

public static ConverterBase<object, bool> IsInterface { get; }

Property Value

ConverterBase<object, bool>

Methods

GetAllFiles(string, Predicate<FileInfo>)

获取当前文件夹下所有匹配的文件

public static List<string> GetAllFiles(this string dirPath, Predicate<FileInfo> match = null)

Parameters

dirPath string
match Predicate<FileInfo>

Returns

List<string>

TimespanToDislay(TimeSpan)

public static string TimespanToDislay(this TimeSpan t)

Parameters

t TimeSpan

Returns

string

TimespanToString(TimeSpan)

public static string TimespanToString(this TimeSpan t)

Parameters

t TimeSpan

Returns

string