PdfPostScriptCalculatorOperation Struct
Represents a PostScript operation that may appear in a PdfPostScriptCalculatorFunction.
public struct PdfPostScriptCalculatorOperation : IEquatable<PdfPostScriptCalculatorOperation>
Public Structure PdfPostScriptCalculatorOperation
Implements IEquatable(Of PdfPostScriptCalculatorOperation)
Implements
Constructors
PdfPostScriptCalculatorOperation(PdfPostScriptCalculatorOperation[])
Initializes a new instance of the PdfPostScriptCalculatorOperation structure from the specified PostScript Calculator expression.
public PdfPostScriptCalculatorOperation(params PdfPostScriptCalculatorOperation[] value)
Public Sub New(ParamArray value As PdfPostScriptCalculatorOperation())
Parameters
The PostScript Calculator expression.
PdfPostScriptCalculatorOperation(PdfPostScriptCalculatorOperator)
Initializes a new instance of the PdfPostScriptCalculatorOperation structure from the specified PostScript Calculator operator.
public PdfPostScriptCalculatorOperation(PdfPostScriptCalculatorOperator operator)
Public Sub New(operator As PdfPostScriptCalculatorOperator)
Parameters
operator
- PdfPostScriptCalculatorOperator
The PostScript Calculator operator.
Exceptions
- System.NotSupportedException
The PostScript Calculator operator is not supported.
PdfPostScriptCalculatorOperation(IList<PdfPostScriptCalculatorOperation>)
Initializes a new instance of the PdfPostScriptCalculatorOperation structure from the specified PostScript Calculator expression.
public PdfPostScriptCalculatorOperation(IList<PdfPostScriptCalculatorOperation> value)
Public Sub New(value As IList(Of PdfPostScriptCalculatorOperation))
Parameters
value
- System.Collections.Generic.IList<PdfPostScriptCalculatorOperation>
The PostScript Calculator expression.
PdfPostScriptCalculatorOperation(Double)
Initializes a new instance of the PdfPostScriptCalculatorOperation structure from the specified System.Double constant.
Parameters
value
- System.Double
The System.Double constant.
PdfPostScriptCalculatorOperation(Int32)
Initializes a new instance of the PdfPostScriptCalculatorOperation structure from the specified System.Int32 constant.
Parameters
value
- System.Int32
The System.Int32 constant.
Properties
Expression
Gets the PostScript Calculator expression, if the Operator is Expression; otherwise, System.InvalidCastException is thrown.
public readonly IList<PdfPostScriptCalculatorOperation> Expression { get; }
Public ReadOnly Property Expression As IList(Of PdfPostScriptCalculatorOperation)
Property Value
- System.Collections.Generic.IList<PdfPostScriptCalculatorOperation>
The PostScript Calculator expression, if the Operator is Expression; otherwise, System.InvalidCastException is thrown.
Integer
Gets the System.Int32 constant, if the Operator is Number and IsInteger is true; otherwise, System.InvalidCastException or System.OverflowException is thrown.
Property Value
- System.Int32
IsInteger
Gets a value indicating whether this instance is an System.Int32 constant.
Property Value
- System.Boolean
true if this instance is an System.Int32 constant; otherwise, false.
Number
Gets the System.Double constant, if the Operator is Number; otherwise, System.InvalidCastException is thrown.
Property Value
- System.Double
Operator
Gets the PostScript Calculator operator.
public readonly PdfPostScriptCalculatorOperator Operator { get; }
Public ReadOnly Property Operator As PdfPostScriptCalculatorOperator
Property Value
The PostScript Calculator operator.
Methods
Equals(PdfPostScriptCalculatorOperation)
Determines whether the other
PdfPostScriptCalculatorOperation is equal to this PdfPostScriptCalculatorOperation instance.
public bool Equals(PdfPostScriptCalculatorOperation other)
Public Function Equals(other As PdfPostScriptCalculatorOperation) As Boolean
Parameters
The other PostScript Calculator operation to compare with this PostScript Calculator operation instance.
Returns
- System.Boolean
true if the other
PdfPostScriptCalculatorOperation is equal to this PdfPostScriptCalculatorOperation instance; otherwise, false.
Equals(Object)
Determines whether the specified System.Object is equal to this PdfPostScriptCalculatorOperation instance.
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
obj
- System.Object
The System.Object to compare with this PostScript Calculator operation instance.
Returns
- System.Boolean
true if the specified System.Object is a PdfPostScriptCalculatorOperation and is equal to this PdfPostScriptCalculatorOperation instance; otherwise, false.
Overrides
GetHashCode()
Returns a hash code for this PdfPostScriptCalculatorOperation instance.
Returns
- System.Int32
An integer value that specifies a hash value for this PdfPostScriptCalculatorOperation instance.
Overrides
ToString()
Returns a System.String that represents this PdfPostScriptCalculatorOperation instance.
Returns
- System.String
A System.String that represents this PdfPostScriptCalculatorOperation instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
Operators
Equality(PdfPostScriptCalculatorOperation, PdfPostScriptCalculatorOperation)
Determines whether first
and second
PdfPostScriptCalculatorOperations are equal.
public static bool operator ==(PdfPostScriptCalculatorOperation first, PdfPostScriptCalculatorOperation second)
Public Shared Operator =(first As PdfPostScriptCalculatorOperation, second As PdfPostScriptCalculatorOperation) As Boolean
Parameters
The first PostScript Calculator operation.
The second PostScript Calculator operation.
Returns
- System.Boolean
true if first
and second
PostScript Calculator operations are equal; otherwise, false.
Explicit(PdfPostScriptCalculatorOperation to PdfPostScriptCalculatorOperator)
Explicitly converts an instance of PdfPostScriptCalculatorOperation to an instance of PdfPostScriptCalculatorOperator.
public static explicit operator PdfPostScriptCalculatorOperator(PdfPostScriptCalculatorOperation operation)
Public Shared Narrowing Operator CType(operation As PdfPostScriptCalculatorOperation) As PdfPostScriptCalculatorOperator
Parameters
operation
- PdfPostScriptCalculatorOperation
The PdfPostScriptCalculatorOperation value to be converted.
Returns
A PdfPostScriptCalculatorOperator equal in value to operation
instance of PdfPostScriptCalculatorOperation.
Explicit(PdfPostScriptCalculatorOperation to Array)
Explicitly converts an instance of PdfPostScriptCalculatorOperation to an instance of System.Array.
public static explicit operator Array(PdfPostScriptCalculatorOperation operation)
Public Shared Narrowing Operator CType(operation As PdfPostScriptCalculatorOperation) As Array
Parameters
operation
- PdfPostScriptCalculatorOperation
The PdfPostScriptCalculatorOperation value to be converted.
Returns
- System.Array
An System.Array equal in value to operation
instance of PdfPostScriptCalculatorOperation.
Explicit(PdfPostScriptCalculatorOperation to Double)
Explicitly converts an instance of PdfPostScriptCalculatorOperation to an instance of System.Double.
public static explicit operator double (PdfPostScriptCalculatorOperation operation)
Public Shared Narrowing Operator CType(operation As PdfPostScriptCalculatorOperation) As Double
Parameters
operation
- PdfPostScriptCalculatorOperation
The PdfPostScriptCalculatorOperation value to be converted.
Returns
- System.Double
A System.Double equal in value to operation
instance of PdfPostScriptCalculatorOperation.
Explicit(PdfPostScriptCalculatorOperation to Int32)
Explicitly converts an instance of PdfPostScriptCalculatorOperation to an instance of System.Int32.
public static explicit operator int (PdfPostScriptCalculatorOperation operation)
Public Shared Narrowing Operator CType(operation As PdfPostScriptCalculatorOperation) As Integer
Parameters
operation
- PdfPostScriptCalculatorOperation
The PdfPostScriptCalculatorOperation value to be converted.
Returns
- System.Int32
An System.Int32 equal in value to operation
instance of PdfPostScriptCalculatorOperation.
Implicit(PdfPostScriptCalculatorOperator to PdfPostScriptCalculatorOperation)
Implicitly converts an instance of PdfPostScriptCalculatorOperator to an instance of PdfPostScriptCalculatorOperation.
public static implicit operator PdfPostScriptCalculatorOperation(PdfPostScriptCalculatorOperator operator)
Public Shared Widening Operator CType(operator As PdfPostScriptCalculatorOperator) As PdfPostScriptCalculatorOperation
Parameters
operator
- PdfPostScriptCalculatorOperator
The PdfPostScriptCalculatorOperator value to be converted.
Returns
A PdfPostScriptCalculatorOperation equal in value to operator
instance of PdfPostScriptCalculatorOperator.
Implicit(Array to PdfPostScriptCalculatorOperation)
Implicitly converts an instance of System.Array to an instance of PdfPostScriptCalculatorOperation.
public static implicit operator PdfPostScriptCalculatorOperation(Array value)
Public Shared Widening Operator CType(value As Array) As PdfPostScriptCalculatorOperation
Parameters
value
- System.Array
The System.Array value to be converted.
Returns
A PdfPostScriptCalculatorOperation equal in value to value
instance of System.Array.
Exceptions
- System.ArgumentException
Array element type must be PdfPostScriptCalculatorOperator, System.Int32, System.Double or System.Collections.IEnumerable.
Implicit(Double to PdfPostScriptCalculatorOperation)
Implicitly converts an instance of System.Double to an instance of PdfPostScriptCalculatorOperation.
public static implicit operator PdfPostScriptCalculatorOperation(double value)
Public Shared Widening Operator CType(value As Double) As PdfPostScriptCalculatorOperation
Parameters
value
- System.Double
The System.Double value to be converted.
Returns
A PdfPostScriptCalculatorOperation equal in value to value
instance of System.Double.
Implicit(Int32 to PdfPostScriptCalculatorOperation)
Implicitly converts an instance of System.Int32 to an instance of PdfPostScriptCalculatorOperation.
public static implicit operator PdfPostScriptCalculatorOperation(int value)
Public Shared Widening Operator CType(value As Integer) As PdfPostScriptCalculatorOperation
Parameters
value
- System.Int32
The System.Int32 value to be converted.
Returns
A PdfPostScriptCalculatorOperation equal in value to value
instance of System.Int32.
Inequality(PdfPostScriptCalculatorOperation, PdfPostScriptCalculatorOperation)
Determines whether first
and second
PdfPostScriptCalculatorOperations are not equal.
public static bool operator !=(PdfPostScriptCalculatorOperation first, PdfPostScriptCalculatorOperation second)
Public Shared Operator <>(first As PdfPostScriptCalculatorOperation, second As PdfPostScriptCalculatorOperation) As Boolean
Parameters
The first PostScript Calculator operation.
The second PostScript Calculator operation.
Returns
- System.Boolean
true if first
and second
PostScript Calculator operations are not equal; otherwise, false.