Class XmpBoolean

Class XmpBoolean

Namespace: Aspose.Imaging.Xmp.Types.Basic
Assembly: Aspose.Imaging.dll (25.2.0)

Represents XMP Boolean basic type.

[JsonObject(MemberSerialization.OptIn)]
public sealed class XmpBoolean : XmpTypeBase, IXmpType, ICloneable

Inheritance

objectXmpTypeBaseXmpBoolean

Implements

IXmpType, ICloneable

Inherited Members

XmpTypeBase.GetXmpRepresentation(), XmpTypeBase.ToString(), XmpTypeBase.Clone(), object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

XmpBoolean(bool)

Initializes a new instance of the Aspose.Imaging.Xmp.Types.Basic.XmpBoolean class based on boolean value.

public XmpBoolean(bool value)

Parameters

value bool

The Boolean value. Allowed values are True or False.

XmpBoolean()

Initializes a new instance of the Aspose.Imaging.Xmp.Types.Basic.XmpBoolean class with default value.

[JsonConstructor]
public XmpBoolean()

XmpBoolean(string)

Initializes a new instance of the Aspose.Imaging.Xmp.Types.Basic.XmpBoolean class.

public XmpBoolean(string value)

Parameters

value string

The value.

Exceptions

ArgumentNullException

value

ArgumentException

Invalid string value;value

Properties

Value

Gets or sets a value indicating whether this Aspose.Imaging.Xmp.Types.Basic.XmpBoolean is value.

[JsonProperty]
public bool Value { get; set; }

Property Value

bool

Methods

GetXmpRepresentation()

Returns string contained value in XMP format.

public override string GetXmpRepresentation()

Returns

string

Returns string containing xmp representation.