New to Telerik UI for WPF? Start a free 30-day trial

Ohlc

Struct

Represents a struct, which defines a set of four values - High, Low, Open, Close.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public struct Ohlc

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the Ohlc structure.

C#
public Ohlc(double high, double low, double open, double close)
Parameters:highdouble

The high value.

lowdouble

The low value.

opendouble

The open value.

closedouble

The close value.

Properties

Gets or sets the close value.

C#
public double Close { readonly get; set; }
Property Value:

The close value.

Gets or sets the high value.

C#
public double High { readonly get; set; }
Property Value:

The high value.

Gets or sets the low value.

C#
public double Low { readonly get; set; }
Property Value:

The low value.

Gets or sets the open value.

C#
public double Open { readonly get; set; }
Property Value:

The open value.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides: ValueType.Equals(object)

Determines whether the specified Ohlc is equal to the current Ohlc.

C#
public bool Equals(Ohlc obj)
Parameters:objOhlc

The object to compare with the current object.

Returns:

bool

True if the specified Ohlc is equal to the current Ohlc; otherwise, false.

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: ValueType.GetHashCode()

Operators

Implements the operator !=.

C#
public static bool operator !=(Ohlc ohlc1, Ohlc ohlc2)
Parameters:ohlc1Ohlc

The first Ohlc struct.

ohlc2Ohlc

The second Ohlc struct.

Returns:

bool

The result of the operator.

Implements the operator ==.

C#
public static bool operator ==(Ohlc ohlc1, Ohlc ohlc2)
Parameters:ohlc1Ohlc

The first Ohlc struct.

ohlc2Ohlc

The second Ohlc struct.

Returns:

bool

The result of the operator.