Struct
Ohlc

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:

cs-api-definition
public struct Ohlc

Inherited Members ValueType.ToString()

Constructors

Ohlc(double, double, double, double)

Initializes a new instance of the Ohlc structure.

Declaration

cs-api-definition
public Ohlc(double high, double low, double open, double close)

Parameters

high

double

The high value.

low

double

The low value.

open

double

The open value.

close

double

The close value.

Properties

Close

Gets or sets the close value.

Declaration

cs-api-definition
public double Close { readonly get; set; }

Property Value

double

The close value.

High

Gets or sets the high value.

Declaration

cs-api-definition
public double High { readonly get; set; }

Property Value

double

The high value.

Low

Gets or sets the low value.

Declaration

cs-api-definition
public double Low { readonly get; set; }

Property Value

double

The low value.

Open

Gets or sets the open value.

Declaration

cs-api-definition
public double Open { readonly get; set; }

Property Value

double

The open value.

Methods

Equals(Ohlc)

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

Declaration

cs-api-definition
public bool Equals(Ohlc obj)

Parameters

obj

Ohlc

The object to compare with the current object.

Returns

bool

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

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides ValueType.GetHashCode()

Operators

operator !=(Ohlc, Ohlc)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(Ohlc ohlc1, Ohlc ohlc2)

Parameters

ohlc1

Ohlc

The first Ohlc struct.

ohlc2

Ohlc

The second Ohlc struct.

Returns

bool

The result of the operator.

operator ==(Ohlc, Ohlc)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(Ohlc ohlc1, Ohlc ohlc2)

Parameters

ohlc1

Ohlc

The first Ohlc struct.

ohlc2

Ohlc

The second Ohlc struct.

Returns

bool

The result of the operator.