C# 클래스 WinRTXamlToolkit.Controls.DataVisualization.Charting.ValueHelper

A set of functions for data conversion operations.
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit 1 사용 예제들

공개 메소드들

메소드 설명
BottomOrDefault ( this rectangle, double value ) : double

Returns the bottom value of the rectangle.

CanGraph ( double value ) : bool

Returns a value indicating whether this value can be graphed on a linear axis.

Compare ( IComparable left, IComparable right ) : int

Compares two IComparables returning -1 if the left is null and 1 if the right is null.

GetDateTimesBetweenInclusive ( DateTime start, DateTime end, long count ) : IEnumerable

Returns a sequence of date time values from a start and end date time inclusive.

GetIntervalsInclusive ( long start, long end, long count ) : IEnumerable

Returns that intervals between a start and end value, including those start and end values.

GetLength ( this range ) : TimeSpan?

Returns the time span of a date range.

GetLength ( this range ) : double?

Returns the time span of a date range.

GetTimeSpanIntervalsInclusive ( TimeSpan timeSpan, long count ) : IEnumerable

Returns a sequence of time span values within a time span inclusive.

HeightOrDefault ( this rectangle, double value ) : double

Returns the height value of the rectangle.

IsEmptyOrHasNoSize ( this rect ) : bool

Returns a value indicating whether a rectangle is empty or has no width or height.

LeftOrDefault ( this rectangle, double value ) : double

Returns the left value of the rectangle.

RightOrDefault ( this rectangle, double value ) : double

Returns the right value of the rectangle.

SetStyle ( this element, Style style ) : void

Sets the style property of an element.

ToComparableRange ( this range ) : Range

Converts any range to a range of IComparable.

ToComparableRange ( this range ) : Range

Converts any range to a range of IComparable.

ToDateTime ( object value ) : DateTime

Converts a value to a date.

ToDateTimeRange ( this range ) : Range

Converts a range into a date time range.

ToDouble ( object value ) : double

Converts an object into a double.

ToDoubleRange ( this range ) : Range

Converts a range into a double range.

TopOrDefault ( this rectangle, double value ) : double

Returns the top value of the rectangle.

Translate ( this origin, Point offset ) : Point

Applies the translate transform to a point.

TryConvert ( object value, DateTime &dateTimeValue ) : bool

Attempts to convert an object into a date time.

TryConvert ( object value, double &doubleValue ) : bool

Attempts to convert an object into a double.

WidthOrDefault ( this rectangle, double value ) : double

Returns the width value of the rectangle.

비공개 메소드들

메소드 설명
RemoveNoiseFromDoubleMath ( double value ) : double

Removes the noise from double math.

메소드 상세

BottomOrDefault() 공개 정적인 메소드

Returns the bottom value of the rectangle.
public static BottomOrDefault ( this rectangle, double value ) : double
rectangle this The rectangle.
value double The default value.
리턴 double

CanGraph() 공개 정적인 메소드

Returns a value indicating whether this value can be graphed on a linear axis.
public static CanGraph ( double value ) : bool
value double The value to evaluate.
리턴 bool

Compare() 공개 정적인 메소드

Compares two IComparables returning -1 if the left is null and 1 if the right is null.
public static Compare ( IComparable left, IComparable right ) : int
left IComparable The left comparable.
right IComparable The right comparable.
리턴 int

GetDateTimesBetweenInclusive() 공개 정적인 메소드

Returns a sequence of date time values from a start and end date time inclusive.
public static GetDateTimesBetweenInclusive ( DateTime start, DateTime end, long count ) : IEnumerable
start DateTime The start date time.
end DateTime The end date time.
count long The number of values to return.
리턴 IEnumerable

GetIntervalsInclusive() 공개 정적인 메소드

Returns that intervals between a start and end value, including those start and end values.
public static GetIntervalsInclusive ( long start, long end, long count ) : IEnumerable
start long The start value.
end long The end value.
count long The total number of intervals.
리턴 IEnumerable

GetLength() 공개 정적인 메소드

Returns the time span of a date range.
public static GetLength ( this range ) : TimeSpan?
range this The range of values.
리턴 TimeSpan?

GetLength() 공개 정적인 메소드

Returns the time span of a date range.
public static GetLength ( this range ) : double?
range this The range of values.
리턴 double?

GetTimeSpanIntervalsInclusive() 공개 정적인 메소드

Returns a sequence of time span values within a time span inclusive.
public static GetTimeSpanIntervalsInclusive ( TimeSpan timeSpan, long count ) : IEnumerable
timeSpan TimeSpan The time span to split.
count long The number of time spans to return.
리턴 IEnumerable

HeightOrDefault() 공개 정적인 메소드

Returns the height value of the rectangle.
public static HeightOrDefault ( this rectangle, double value ) : double
rectangle this The rectangle.
value double The default value.
리턴 double

IsEmptyOrHasNoSize() 공개 정적인 메소드

Returns a value indicating whether a rectangle is empty or has no width or height.
public static IsEmptyOrHasNoSize ( this rect ) : bool
rect this The rectangle.
리턴 bool

LeftOrDefault() 공개 정적인 메소드

Returns the left value of the rectangle.
public static LeftOrDefault ( this rectangle, double value ) : double
rectangle this The rectangle.
value double The default value.
리턴 double

RightOrDefault() 공개 정적인 메소드

Returns the right value of the rectangle.
public static RightOrDefault ( this rectangle, double value ) : double
rectangle this The rectangle.
value double The default value.
리턴 double

SetStyle() 공개 정적인 메소드

Sets the style property of an element.
public static SetStyle ( this element, Style style ) : void
element this The element.
style Style The style.
리턴 void

ToComparableRange() 공개 정적인 메소드

Converts any range to a range of IComparable.
public static ToComparableRange ( this range ) : Range
range this The range to be converted.
리턴 Range

ToComparableRange() 공개 정적인 메소드

Converts any range to a range of IComparable.
public static ToComparableRange ( this range ) : Range
range this The range to be converted.
리턴 Range

ToDateTime() 공개 정적인 메소드

Converts a value to a date.
public static ToDateTime ( object value ) : DateTime
value object The value to convert to a date.
리턴 DateTime

ToDateTimeRange() 공개 정적인 메소드

Converts a range into a date time range.
public static ToDateTimeRange ( this range ) : Range
range this The range to convert.
리턴 Range

ToDouble() 공개 정적인 메소드

Converts an object into a double.
public static ToDouble ( object value ) : double
value object The value to convert to a double.
리턴 double

ToDoubleRange() 공개 정적인 메소드

Converts a range into a double range.
public static ToDoubleRange ( this range ) : Range
range this The range to convert.
리턴 Range

TopOrDefault() 공개 정적인 메소드

Returns the top value of the rectangle.
public static TopOrDefault ( this rectangle, double value ) : double
rectangle this The rectangle.
value double The default value.
리턴 double

Translate() 공개 정적인 메소드

Applies the translate transform to a point.
public static Translate ( this origin, Point offset ) : Point
origin this The origin point.
offset Point The offset point.
리턴 Point

TryConvert() 공개 정적인 메소드

Attempts to convert an object into a date time.
public static TryConvert ( object value, DateTime &dateTimeValue ) : bool
value object The value to convert.
dateTimeValue DateTime The double value.
리턴 bool

TryConvert() 공개 정적인 메소드

Attempts to convert an object into a double.
public static TryConvert ( object value, double &doubleValue ) : bool
value object The value to convert.
doubleValue double The double value.
리턴 bool

WidthOrDefault() 공개 정적인 메소드

Returns the width value of the rectangle.
public static WidthOrDefault ( this rectangle, double value ) : double
rectangle this The rectangle.
value double The default value.
리턴 double