GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfPostScriptCalculatorOperation Struct

    Namespace:
    GemBox.Pdf.Functions
    Assembly:
    GemBox.Pdf.dll

    Represents a PostScript operation that may appear in a PdfPostScriptCalculatorFunction.

    • C#
    • VB.NET
    public readonly struct PdfPostScriptCalculatorOperation : IEquatable<PdfPostScriptCalculatorOperation>
    Public Structure PdfPostScriptCalculatorOperation
        Implements IEquatable(Of PdfPostScriptCalculatorOperation)
    Implements
    System.IEquatable<PdfPostScriptCalculatorOperation>

    Constructors

    PdfPostScriptCalculatorOperation(PdfPostScriptCalculatorOperation[])

    Initializes a new instance of the PdfPostScriptCalculatorOperation structure from the specified PostScript Calculator expression.

    • C#
    • VB.NET
    public PdfPostScriptCalculatorOperation(params PdfPostScriptCalculatorOperation[] value)
    Public Sub New(ParamArray value As PdfPostScriptCalculatorOperation())
    Parameters
    value
    PdfPostScriptCalculatorOperation[]

    The PostScript Calculator expression.

    PdfPostScriptCalculatorOperation(PdfPostScriptCalculatorOperator)

    Initializes a new instance of the PdfPostScriptCalculatorOperation structure from the specified PostScript Calculator operator.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public PdfPostScriptCalculatorOperation(double value)
    Public Sub New(value As Double)
    Parameters
    value
    System.Double

    The System.Double constant.

    PdfPostScriptCalculatorOperation(Int32)

    Initializes a new instance of the PdfPostScriptCalculatorOperation structure from the specified System.Int32 constant.

    • C#
    • VB.NET
    public PdfPostScriptCalculatorOperation(int value)
    Public Sub New(value As Integer)
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public readonly int Integer { get; }
    Public ReadOnly Property Integer As Integer
    Property Value
    System.Int32

    The System.Int32 constant, if the Operator is Number and IsInteger is true; otherwise, System.InvalidCastException or System.OverflowException is thrown.

    IsInteger

    Gets a value indicating whether this instance is an System.Int32 constant.

    • C#
    • VB.NET
    public readonly bool IsInteger { get; }
    Public ReadOnly Property IsInteger As Boolean
    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.

    • C#
    • VB.NET
    public readonly double Number { get; }
    Public ReadOnly Property Number As Double
    Property Value
    System.Double

    The System.Double constant, if the Operator is Number; otherwise, System.InvalidCastException is thrown.

    Operator

    Gets the PostScript Calculator operator.

    • C#
    • VB.NET
    public readonly PdfPostScriptCalculatorOperator Operator { get; }
    Public ReadOnly Property Operator As PdfPostScriptCalculatorOperator
    Property Value
    PdfPostScriptCalculatorOperator

    The PostScript Calculator operator.

    Methods

    Equals(PdfPostScriptCalculatorOperation)

    Determines whether the other PdfPostScriptCalculatorOperation is equal to this PdfPostScriptCalculatorOperation instance.

    • C#
    • VB.NET
    public readonly bool Equals(PdfPostScriptCalculatorOperation other)
    Public Function Equals(other As PdfPostScriptCalculatorOperation) As Boolean
    Parameters
    other
    PdfPostScriptCalculatorOperation

    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.

    • C#
    • VB.NET
    public override readonly 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
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this PdfPostScriptCalculatorOperation instance.

    • C#
    • VB.NET
    public override readonly int GetHashCode()
    Public Overrides Function GetHashCode As Integer
    Returns
    System.Int32

    An integer value that specifies a hash value for this PdfPostScriptCalculatorOperation instance.

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a System.String that represents this PdfPostScriptCalculatorOperation instance.

    • C#
    • VB.NET
    public override readonly string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this PdfPostScriptCalculatorOperation instance.

    Overrides
    System.ValueType.ToString()
    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.

    • C#
    • VB.NET
    public static bool operator ==(PdfPostScriptCalculatorOperation first, PdfPostScriptCalculatorOperation second)
    Public Shared Operator =(first As PdfPostScriptCalculatorOperation, second As PdfPostScriptCalculatorOperation) As Boolean
    Parameters
    first
    PdfPostScriptCalculatorOperation

    The first PostScript Calculator operation.

    second
    PdfPostScriptCalculatorOperation

    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.

    • C#
    • VB.NET
    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
    PdfPostScriptCalculatorOperator

    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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
    PdfPostScriptCalculatorOperation

    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.

    • C#
    • VB.NET
    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
    PdfPostScriptCalculatorOperation

    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.

    • C#
    • VB.NET
    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
    PdfPostScriptCalculatorOperation

    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.

    • C#
    • VB.NET
    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
    PdfPostScriptCalculatorOperation

    A PdfPostScriptCalculatorOperation equal in value to value instance of System.Int32.

    Inequality(PdfPostScriptCalculatorOperation, PdfPostScriptCalculatorOperation)

    Determines whether first and second PdfPostScriptCalculatorOperations are not equal.

    • C#
    • VB.NET
    public static bool operator !=(PdfPostScriptCalculatorOperation first, PdfPostScriptCalculatorOperation second)
    Public Shared Operator <>(first As PdfPostScriptCalculatorOperation, second As PdfPostScriptCalculatorOperation) As Boolean
    Parameters
    first
    PdfPostScriptCalculatorOperation

    The first PostScript Calculator operation.

    second
    PdfPostScriptCalculatorOperation

    The second PostScript Calculator operation.

    Returns
    System.Boolean

    true if first and second PostScript Calculator operations are not equal; otherwise, false.

    Implements

    System.IEquatable<T>

    See Also

    PDF Specification ISO 32000-1:2008, section '7.10.5 Type 4 (PostScript Calculator) Functions'
    PDF Specification ISO 32000-1:2008, section 'Annex B (normative) Operators in Type 4 Functions'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.