Class CmxLayer

Class CmxLayer

Namespace: Aspose.Imaging.FileFormats.Cmx.ObjectModel
Assembly: Aspose.Imaging.dll (25.7.0)

The graphic layer located on the page of the CMX document.

[JsonObject(MemberSerialization.OptIn)]
   public class CmxLayer : CmxContainer, IDisposable, ICmxContainer, ICmxDocElement
   {
   }

Inheritance

object DisposableObject CmxContainer CmxLayer

Implements

IDisposable , ICmxContainer , ICmxDocElement

Inherited Members

CmxContainer.Equals(CmxContainer) , CmxContainer.Equals(object) , CmxContainer.GetHashCode() , CmxContainer.ReleaseManagedResources() , CmxContainer.Elements , DisposableObject.Dispose() , DisposableObject.ReleaseManagedResources() , DisposableObject.ReleaseUnmanagedResources() , DisposableObject.VerifyNotDisposed() , DisposableObject.Disposed , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

CmxLayer()

public CmxLayer()
   {
   }

Fields

MasterDesktopLayerName

The master desktop layer name

public const string MasterDesktopLayerName = "Master Desktop";

Field Value

string

Properties

Flags

Gets or sets the flags.

[JsonProperty]
   public uint Flags
   {
       get;
       set;
   }

Property Value

uint

IsVisible

Gets or sets a value indicating whether this layer is visible.

public class MyClass
{
    [JsonProperty]
    public bool IsVisible { get; set; }
}

Property Value

bool

Name

Gets or sets the name of the layer.

[JsonProperty]
    public string Name
    {
        get;
        set;
    }

Property Value

string

Number

Gets or sets the layer order number.

[JsonProperty]
   public int Number
   {
       get;
       set;
   }

Property Value

int

Methods

Equals(CmxLayer)

Check if objects are equal.

protected bool Equals(CmxLayer other)
   {
      if (other is null) return false;
      return this.Name == other.Name &&
             this.ZIndex == other.ZIndex &&
             this.IsVisible == other.IsVisible &&
             this.Visibility == other.Visibility &&
             this.Opacity == other.Opacity;
   }

Parameters

other CmxLayer

The other object.

Returns

bool

The equality comparison result.

Equals(object)

Check if objects are equal.

public override bool Equals(object obj)
{
}

Parameters

obj object

The other object.

Returns

bool

The equality comparison result.

GetHashCode()

Get hash code of the current object.

public override int GetHashCode()
    {
    }

Returns

int

The hash code.

See Also

ICmxContainer

 English