Struct Opacity
Opacity struct.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
Namespace: Syncfusion.SVG.IO
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public struct Opacity
Constructors
Opacity(Byte)
Initializes a new instance of the Opacity struct.
Declaration
public Opacity(byte alpha)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | alpha | The alpha. |
Opacity(Color)
Initializes a new instance of the Opacity struct.
Declaration
public Opacity(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | The color. |
Opacity(Single)
Initializes a new instance of the Opacity struct.
Declaration
public Opacity(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | The value. |
Opacity(String)
Initializes a new instance of the Opacity struct.
Declaration
public Opacity(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
Properties
Alpha
Gets or sets the alpha.
Declaration
public byte Alpha { get; set; }
Property Value
Type | Description |
---|---|
System.Byte | The alpha. |
Value
Gets or sets the value.
Declaration
public float Value { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The value. |
Methods
Parse(String)
Parses the specified value.
Declaration
public static Opacity Parse(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
Returns
Type | Description |
---|---|
Opacity | The opacity. |
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(Byte to Opacity)
Performs an implicit conversion from System.Byte to Opacity.
Declaration
public static implicit operator Opacity(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | The value. |
Returns
Type | Description |
---|---|
Opacity | The result of the conversion. |
Implicit(Single to Opacity)
Performs an implicit conversion from System.Single to Opacity.
Declaration
public static implicit operator Opacity(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | The value. |
Returns
Type | Description |
---|---|
Opacity | The result of the conversion. |