Struct ProfitLossValue
Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Assembly: tt-net-api.dll
Syntax
public struct ProfitLossValue
Constructors
ProfitLossValue(Decimal, Decimal, Decimal)
Declaration
public ProfitLossValue(decimal asNativeCurrency, decimal asPrimaryCurrency, decimal asQuantityTimesPrice)
Parameters
Type |
Name |
Description |
Decimal |
asNativeCurrency |
|
Decimal |
asPrimaryCurrency |
|
Decimal |
asQuantityTimesPrice |
|
ProfitLossValue(Decimal, Decimal, Decimal, Decimal, Boolean, Boolean, Boolean, Boolean)
Declaration
public ProfitLossValue(decimal asNativeCurrency, decimal asPrimaryCurrency, decimal asQuantityTimesPrice, decimal asTicks, bool supportsAsNativeCurrency, bool supportsAsPrimaryCurrency, bool supportsAsQuantityTimesPrice, bool supportsAsTicks)
Parameters
Type |
Name |
Description |
Decimal |
asNativeCurrency |
|
Decimal |
asPrimaryCurrency |
|
Decimal |
asQuantityTimesPrice |
|
Decimal |
asTicks |
|
Boolean |
supportsAsNativeCurrency |
|
Boolean |
supportsAsPrimaryCurrency |
|
Boolean |
supportsAsQuantityTimesPrice |
|
Boolean |
supportsAsTicks |
|
Fields
InvalidValue
Declaration
public static readonly ProfitLossValue InvalidValue
Field Value
Properties
AsNativeCurrency
Declaration
public decimal AsNativeCurrency { get; }
Property Value
AsPrimaryCurrency
Declaration
public decimal AsPrimaryCurrency { get; }
Property Value
AsQuantityTimesPrice
Declaration
public decimal AsQuantityTimesPrice { get; }
Property Value
AsTicks
Declaration
public decimal AsTicks { get; }
Property Value
SupportsAsNativeCurrency
Declaration
public bool SupportsAsNativeCurrency { get; }
Property Value
SupportsAsPrimaryCurrency
Declaration
public bool SupportsAsPrimaryCurrency { get; }
Property Value
SupportsAsQuantityTimesPrice
Declaration
public bool SupportsAsQuantityTimesPrice { get; }
Property Value
SupportsAsTicks
Declaration
public bool SupportsAsTicks { get; }
Property Value
Methods
ToString()
Declaration
public override string ToString()
Returns
Overrides
System.ValueType.ToString()