WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Struct Number

    Show / Hide Table of Contents

    Struct Number

    Number struct

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Syncfusion.SVG.IO
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public struct Number

    Constructors

    Number(Single)

    Initializes a new instance of the Number struct.

    Declaration
    public Number(float value)
    Parameters
    Type Name Description
    System.Single value

    The value.

    Number(String)

    Initializes a new instance of the Number struct.

    Declaration
    public Number(string value)
    Parameters
    Type Name Description
    System.String value

    The value.

    Properties

    Empty

    Gets the empty.

    Declaration
    public static Number Empty { get; }
    Property Value
    Type Description
    Number

    The empty.

    Primary

    Gets the primary.

    Declaration
    public string Primary { get; }
    Property Value
    Type Description
    System.String

    The primary.

    Value

    Gets the value.

    Declaration
    public float Value { get; }
    Property Value
    Type Description
    System.Single

    The value.

    Methods

    Parse(String)

    Parses the specified value.

    Declaration
    public static Number Parse(string value)
    Parameters
    Type Name Description
    System.String value

    The value.

    Returns
    Type Description
    Number

    The number.

    ToString()

    Returns the fully qualified type name of this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String containing a fully qualified type name.

    Overrides
    System.ValueType.ToString()

    Operators

    Implicit(Int32 to Number)

    Performs an implicit conversion from System.Int32 to Number.

    Declaration
    public static implicit operator Number(int value)
    Parameters
    Type Name Description
    System.Int32 value

    The value.

    Returns
    Type Description
    Number

    The result of the conversion.

    Implicit(Single to Number)

    Performs an implicit conversion from System.Single to Number.

    Declaration
    public static implicit operator Number(float value)
    Parameters
    Type Name Description
    System.Single value

    The value.

    Returns
    Type Description
    Number

    The result of the conversion.

    Implicit(String to Number)

    Performs an implicit conversion from System.String to Number.

    Declaration
    public static implicit operator Number(string value)
    Parameters
    Type Name Description
    System.String value

    The value.

    Returns
    Type Description
    Number

    The result of the conversion.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved