Constructors

Layer

#Since v5.0
public Layer()

Properties

Color

#Since v5.0
public Color Color { get; set; }
Gets or sets the display color for this layer.

ComponentStatus

#Since v6.0
public override ComponentStatus ComponentStatus { get; set; }
Gets or sets the status of the layer.

ComponentType

#Since v6.0
public override ModelComponentType ComponentType { get; }

DeletedName

public string DeletedName { get; }
Gets the name of a component that is deleted.
inherited fromModelComponent

Description

#Since v9.0
public string Description { get; set; }
Gets and sets a short description of the layer.

Disposed

public bool Disposed { get; }
Indicates if this object has been disposed or the document it originally belonged to has been disposed.
inherited fromCommonObject

FullPath

#ExampleSince v5.0
public string FullPath { get; }
Gets the full path to this layer. The full path includes nesting information.

HasId

public bool HasId { get; }
Returns a value indicating whether the component has an ID.
inherited fromModelComponent

HasIndex

public bool HasIndex { get; }
Returns a value indicating whether the component has an Index.
inherited fromModelComponent

HasName

public bool HasName { get; }
Returns a value indicating whether the component has a Name.
inherited fromModelComponent

HasUserData

public bool HasUserData { get; }
Gets true if this class has any custom information attached to it through UserData.
inherited fromCommonObject

Id

#Since v5.0
public override Guid Id { get; set; }
Gets or sets the ID of this layer object. You typically do not need to assign a custom ID.

IdIsLocked

public bool IdIsLocked { get; }
Returns a value indicating whether the component ID is already locked.
inherited fromModelComponent

IgesLevel

#Since v5.0
public int IgesLevel { get; set; }
Gets or sets the IGES level for this layer.

Index

public virtual int Index { get; set; }
Gets or sets the model component index attribute.
inherited fromModelComponent
InvalidOperationExceptionWhen setting the Index failed. This usually happens because the instance Index is already locked.

IndexIsLocked

public bool IndexIsLocked { get; }
Returns a value indicating whether the component Index is already locked.
inherited fromModelComponent

InstanceDefinitionModelSerialNumber

[CLSCompliant(false)] public virtual uint InstanceDefinitionModelSerialNumber { get; }
When a component is in a model as part of the information required for a linked instance definition, this value identifies the linked instance definition reference model.
inherited fromModelComponent
Remarks: Reference components are not saved in .3dm archives. Typically this value is set and locked by the code that adds a component to a model. This value is not saved in .3dm archives.

IsComponentStatusLocked

public bool IsComponentStatusLocked { get; }
The component status itself can be locked. This returns an indication.
inherited fromModelComponent

IsCurrent

#Since v8.0
public bool IsCurrent { get; }
Returns true if the layer is the current layer.

IsDeleted

#Since v5.0
public override bool IsDeleted { get; }
Gets a value indicating whether this layer has been deleted and is currently in the Undo buffer.

IsDocumentControlled

public virtual bool IsDocumentControlled { get; }
If true this object may not be modified. Any properties or functions that attempt to modify this object when it is set to "IsReadOnly" will throw a NotSupportedException.
inherited fromCommonObject

IsExpanded

#Since v5.0
public bool IsExpanded { get; set; }
Gets or sets a value indicating whether this layer is expanded in the Rhino Layer dialog.

IsLocked

#ExampleSince v5.0
public bool IsLocked { get; set; }
Gets or sets a value indicating the locked state of this layer.

IsReference

#Since v5.0
public override bool IsReference { get; }
Gets a value indicting whether this layer is a referenced layer. Referenced layers are part of referenced documents.

IsReferenceParentLayer

#Since v8.0
public bool IsReferenceParentLayer { get; }
Returns true if the layer is a parent layer of the layer tree from a linked instance definition or the layer tree from a worksession reference model.

IsSystemComponent

public bool IsSystemComponent { get; }
True if this model component is a system constant.

An incomplete list of system constant model components is below:

  • ON_ModelComponent::Unset

  • ON_InstanceDefinition::Empty

  • ON_Linetype::Unset
  • ON_Linetype::Continuous
  • ON_Linetype::ByLayer
  • ON_Linetype::ByParent

  • ON_Layer::Unset
  • ON_Layer::Default

  • ON_TextStyle::Unset
  • ON_TextStyle::Default
  • ON_TextStyle::ByLayer
  • ON_TextStyle::ByParent

  • ON_DimStyle::Unset
  • ON_DimStyle::Default
  • ON_DimStyle::DefaultInchDecimal
  • ON_DimStyle::DefaultInchFractional
  • ON_DimStyle::DefaultFootInchArchitecture
  • ON_DimStyle::DefaultMillimeterSmall
  • ON_DimStyle::DefaultMillimeterLarge
  • ON_DimStyle::DefaultMillimeterArchitecture
inherited fromModelComponent

IsValid

public virtual bool IsValid { get; }
Tests an object to see if it is valid.
inherited fromCommonObject

IsVisible

#Since v5.0
public bool IsVisible { get; set; }
Gets or sets the global visibility of this layer.

IsVisibleInUserInterface

#Since v8.9
public bool IsVisibleInUserInterface { get; set; }
Return true if the layer is visible in user interfaces that display layers. Returns false if the layer not visible in user interfaces. This is a runtime property that does not persist in .3dm files. This property is also used by the Layers panel to filter layers.

LayerIndex

#Since v5.0
[EditorBrowsable(EditorBrowsableState.Never)] public int LayerIndex { get; set; }
obsoleteUse the Index property.
Gets or sets the index of this layer.

LinetypeIndex

#Since v5.0
public int LinetypeIndex { get; set; }
Gets or sets the line-type index for this layer.

ModelIsVisible

#Since v8.0
public bool ModelIsVisible { get; set; }
Gets or sets the model visiblity of this layer.

ModelPersistentVisibility

#Since v8.0
public bool ModelPersistentVisibility { get; set; }
Gets or sets the model persistent visibility of this layer. The persistent viability setting is used for layers whose visibility can be changed by a parent layer. In this case, when a parent layer is turned off, then child layers are also turned off. The persistent visibility setting determines what happens when the parent is turned on again.

ModelSerialNumber

[CLSCompliant(false)] public virtual uint ModelSerialNumber { get; }
A value identifying the model that manages this component.
inherited fromModelComponent
Remarks: If the component is being managed by a model, this value identifies the model. In Rhino, this value is the document runtime serial number. Typically this value is set and locked by the code that adds a component to a model. This value is not saved in .3dm archives.

Name

#ExampleSince v5.0
public override string Name { get; set; }
Gets or sets the name of this layer.

NameIsLocked

public bool NameIsLocked { get; }
Returns a value indicating whether the component Name is already locked.
inherited fromModelComponent

ParentLayerId

#ExampleSince v5.0
public Guid ParentLayerId { get; set; }
Gets the ID of the parent layer. Layers can be organized in a hierarchical structure, in which case this returns the parent layer ID. If the layer has no parent, Guid.Empty will be returned.

PathSeparator

#Since v6.0
[EditorBrowsable(EditorBrowsableState.Never)] public static string PathSeparator { get; }
obsoleteUse ModelComponent.NamePathSeparator
The string "::" (colon,colon) is used to separate parent and child layer names.

PersistentVisibility

#Since v8.0
public bool PersistentVisibility { get; set; }
Gets or sets the global persistent visibility setting for this layer.

PerViewportIsVisibleInNewDetails

#Since v8.0
public bool PerViewportIsVisibleInNewDetails { get; set; }
Gets and sets the initial per viewport visibility of this layer in newly created detail views.

PlotColor

#Since v5.0
public Color PlotColor { get; set; }
Gets or sets the plot color for this layer.

PlotWeight

#Since v5.0
public double PlotWeight { get; set; }
Gets or sets the weight of the plotting pen in millimeters. A weight of 0.0 indicates the "default" pen weight should be used. A weight of -1.0 indicates the layer should not be printed.

ReferenceModelSerialNumber

[CLSCompliant(false)] public virtual uint ReferenceModelSerialNumber { get; }
When a component is in a model for reference, this value identifies the reference model.
inherited fromModelComponent
Remarks: Reference components are not saved in .3dm archives. Typically this value is set and locked by the code that adds a component to a model. This value is not saved in .3dm archives.

RenderMaterial

#Since v5.7
public RenderMaterial RenderMaterial { get; set; }
Gets or sets the RenderMaterial for objects on this layer that have MaterialSource() == MaterialFromLayer. A null result indicates that no RenderMaterial has been assigned and the material created by the default Material constructor or the RenderMaterialIndex should be used.

RenderMaterialIndex

#Since v5.0
public int RenderMaterialIndex { get; set; }
Gets or sets the index of render material for objects on this layer that have MaterialSource() == MaterialFromLayer. A material index of -1 indicates no material has been assigned and the material created by the default Material constructor should be used.

SectionStyleIndex

#Since v9.0
public int SectionStyleIndex { get; set; }
Gets or sets the section style index for this layer.

SortIndex

#Since v5.0
public int SortIndex { get; }
Runtime index used to sort layers in layer dialog.

UserData

public UserDataList UserData { get; }
List of custom information that is attached to this class.
inherited fromCommonObject

UserDictionary

public ArchivableDictionary UserDictionary { get; }
Dictionary of custom information attached to this class. The dictionary is actually user data provided as an easy to use shareable set of information.
inherited fromCommonObject

UserStringCount

#Since v5.0
public int UserStringCount { get; }
Gets the amount of user strings.

Methods

ClearId

public void ClearId()
Resets the HasId property of the model component to false, if possible.
inherited fromModelComponent
InvalidOperationExceptionIf the ID is locked.

ClearIndex

public void ClearIndex()
Resets the HasIndex property of the model component to false, if possible.
inherited fromModelComponent
InvalidOperationExceptionIf the index is locked.

ClearName

public void ClearName()
Resets the HasName property of the model component to false, if possible.
inherited fromModelComponent
InvalidOperationExceptionIf the name is locked.

CommitChanges

#ExampleSince v5.0 Obsolete v6.0
[EditorBrowsable(EditorBrowsableState.Never)] public bool CommitChanges()
obsoleteNo longer needed. Layer changes in the document are now immediate

ConstructConstObject

protected void ConstructConstObject(object parentObject, int subobjectIndex)
Assigns a parent object and a sub-object index to this.
inherited fromCommonObject
parentObject (object)The parent object.
subobjectIndex (int)The sub-object index.

CopyAttributesFrom

#Since v6.0
public void CopyAttributesFrom(Layer otherLayer)
Copy typical attributes from another layer
otherLayer (Layer)

DataCRC

[CLSCompliant(false)] public uint DataCRC(uint currentRemainder)
Increments the Cyclic Redundancy Check value by this instance.
inherited fromModelComponent
currentRemainder (uint)The current remainder value.
The updated remainder value.

Default

#Since v5.0
public void Default()
Sets layer to default settings.

DeleteAllUserStrings

#Since v8.9
public void DeleteAllUserStrings()

DeleteModelVisible

#Since v8.0
public void DeleteModelVisible()
Remove any model visibility setting so the layer's global setting will be used for all viewports.

DeletePerViewportColor

#Since v6.0
public void DeletePerViewportColor(Guid viewportId)
Remove any per viewport layer color setting so the layer's overall setting will be used for all viewports.
viewportId (Guid)If not Guid.Empty, then the setting for this viewport will be deleted. If Guid.Empty, the all per viewport layer color settings will be removed.

DeletePerViewportPlotColor

#Since v6.0
public void DeletePerViewportPlotColor(Guid viewportId)
Remove any per viewport layer plot color setting so the layer's overall setting will be used for all viewports.
viewportId (Guid)If not Guid.Empty, then the setting for this viewport will be deleted. If Guid.Empty, the all per viewport layer color settings will be removed.

DeletePerViewportPlotWeight

#Since v6.0
public void DeletePerViewportPlotWeight(Guid viewportId)
Remove any per viewport layer plot weight setting so the layer's overall setting will be used for all viewports.
viewportId (Guid)If not Guid.Empty, then the setting for this viewport will be deleted. If Guid.Empty, the all per viewport layer color settings will be removed.

DeletePerViewportSettings

#Since v6.0
public void DeletePerViewportSettings(Guid viewportId)
Deletes per viewport layer settings.
viewportId (Guid)If not Guid.Empty, then the settings for that viewport are deleted. If Guid.Empty, then all per viewport settings are deleted.

DeletePerViewportVisible

#Since v6.0
public void DeletePerViewportVisible(Guid viewportId)
Remove any per viewport visibility setting so the layer's overall setting will be used for all viewports.
viewportId (Guid)If not Guid.Empty, then the setting for this viewport will be deleted. If Guid.Empty, the all per viewport visibility settings will be removed.

DeletePlotColor

#Since v8.26
public void DeletePlotColor()
Removes the plot color for layer. The layer's color will be used for the plot color.

DeleteUserString

#Since v8.9
public bool DeleteUserString(string key)
key (string)

Dispose

public void Dispose()
Actively reclaims unmanaged resources that this instance uses.
inherited fromCommonObject

Dispose

protected virtual void Dispose(bool disposing)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

inherited fromCommonObject
disposing (bool)true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.

EnsurePrivateCopy

public void EnsurePrivateCopy()
If you want to keep a copy of this class around by holding onto it in a variable after a command completes, call EnsurePrivateCopy to make sure that this class is not tied to the document. You can call this function as many times as you want.
inherited fromCommonObject

Equals

#Since v6.0
public bool Equals(Layer other)
other (Layer)

Equals

#
public override bool Equals(object obj)
obj (object)
Object.Equals

GetChildren

#Since v5.0
public Layer[] GetChildren()
Gets immediate children of this layer. Note that child layers may have their own children.
Array of child layers, sorted by layer index, or null if this layer does not have any children.

GetChildren

#Since v8.0
public Layer[] GetChildren(bool allChildren)
Gets the children of this layer.
allChildren (bool)If false, the immediate children are returned. If true, immediate children, their children, and so on, are returned.
Array of child layers, sorted by layer index, or null if this layer does not have any children.

GetCustomSectionStyle

#Since v8.0
public SectionStyle GetCustomSectionStyle()
Get an optional custom section style associated with these attributes.

GetDefaultLayerProperties

#Since v5.0
public static Layer GetDefaultLayerProperties()
Constructs a layer with the current default properties. The default layer properties are:

color = Rhino.ApplicationSettings.AppearanceSettings.DefaultLayerColor

line style = Rhino.ApplicationSettings.AppearanceSettings.DefaultLayerLineStyle

material index = -1

IGES level = -1

mode = NormalLayer

name = empty

layer index = 0 (ignored by AddLayer)

A new layer instance.

GetHashCode

#
public override int GetHashCode()

GetLeafName

#Since v6.0
public static string GetLeafName(Layer layer)
Get a layer name's "leaf" level name
layer (Layer)
leaf name or String.Empty if fullPath does not contain a leaf

GetLeafName

#Since v6.0
public static string GetLeafName(string fullPath)
Get a layer name's "leaf" level name
fullPath (string)
leaf name or String.Empty if fullPath does not contain a leaf

GetObjectData

[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
inherited fromCommonObject
info (SerializationInfo)The System.Runtime.Serialization.SerializationInfo to populate with data.
context (StreamingContext)The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.

GetParentName

#Since v6.0
public static string GetParentName(Layer layer)
Get a layer's "parent" path name
layer (Layer)
parent name or String.Empty

GetParentName

#Since v6.0
public static string GetParentName(string fullPath)
Get a layer's "parent" path name
fullPath (string)
parent name or String.Empty

GetPersistentLocking

#Since v5.5
public bool GetPersistentLocking()
The persistent locking setting is used for layers that can be locked by a "parent" object. A common case is when a layer is a child layer (Layer.ParentI is not nil). In this case, when a parent layer is locked, then child layers are also locked. The persistent locking setting determines what happens when the parent is unlocked again.

GetPersistentVisibility

#Since v5.5
public bool GetPersistentVisibility()
The global persistent visibility setting is used for layers whose visibility can be changed by a "parent" object. A common case is when a layer is a child layer (ParentId is not nil). In this case, when a parent layer is turned off, then child layers are also turned off. The persistent visibility setting determines what happens when the parent is turned on again.
Remarks: Returns true if this layer's visibility is controlled by a parent object and the parent is turned on (after being off), then this layer will also be turned on. Returns false if this layer's visibility is controlled by a parent object and the parent layer is turned on (after being off), then this layer will continue to be off. When the persistent viability is not explicitly set, this property returns the current value of IsVisible

GetUserString

#Since v5.0
public string GetUserString(string key)
Gets user string from this geometry.
key (string)id used to retrieve the string.
string associated with the key if successful. null if no key was found.

GetUserStrings

#Since v5.0
public NameValueCollection GetUserStrings()
Gets a copy of all (user key string, user value string) pairs attached to this geometry.
A new collection.

HasPerViewportSettings

#Since v6.0
public bool HasPerViewportSettings(Guid viewportId)
Verifies that a layer has per viewport settings.
viewportId (Guid)If not Guid.Empty, then checks for settings for that specific viewport. If Guid.Empty, then checks for any viewport settings.
True if the layer has per viewport settings, false otherwise.

HasSelectedObjects

#Since v8.0
public bool HasSelectedObjects(bool checkSubObjects)
Returns true if the layer has one or more selected Rhino objects.
checkSubObjects (bool)If true, the search will include objects that have some subset of the object selected, like some edges of a Brep. If false, objects where the entire object is not selected are ignored.
true if the layer has selected Rhino objects, false otherwise.

IsChildOf

#Since v6.0
public bool IsChildOf(Guid otherlayerId)
otherlayerId (Guid)

IsChildOf

#Since v5.0
public bool IsChildOf(int layerIndex)
layerIndex (int)

IsChildOf

#Since v5.0
public bool IsChildOf(Layer otherLayer)
otherLayer (Layer)

IsParentOf

#Since v6.0
public bool IsParentOf(Guid otherLayer)
otherLayer (Guid)

IsParentOf

#Since v5.0
public bool IsParentOf(int layerIndex)
layerIndex (int)

IsParentOf

#Since v5.0
public bool IsParentOf(Layer otherLayer)
otherLayer (Layer)

IsValidName

#ExampleSince v5.0 Obsolete v8.0
[EditorBrowsable(EditorBrowsableState.Never)] public static bool IsValidName(string name)
obsoleteUse ModelComponent.IsValidComponentName
Determines if a given string is valid for a layer name.
name (string)A name to be validated.
true if the name is valid for a layer name; otherwise, false.

IsValidWithLog

public bool IsValidWithLog(out string log)
Determines if an object is valid. Also provides a report on errors if this object happens not to be valid.
inherited fromCommonObject
log (out string)A textual log. This out parameter is assigned during this call.
true if this object is valid; false otherwise.

LockId

public void LockId()
Locks the component Id property.
inherited fromModelComponent

LockIndex

public void LockIndex()
Locks the component Index property.
inherited fromModelComponent

LockName

public void LockName()
Locks the component Name property.
inherited fromModelComponent

NonConstOperation

protected virtual void NonConstOperation()
For derived classes implementers.

Defines the necessary implementation to free the instance from being constant.

inherited fromCommonObject

OnSwitchToNonConst

protected virtual void OnSwitchToNonConst()
Is called when a non-constant operation first occurs.
inherited fromCommonObject

ParentLayer

#Since v8.0
public Layer ParentLayer(bool rootLevelParent)
Returns parent of a layer.
rootLevelParent (bool)If true, the root level parent is returned. The root level parent never has a parent. If false, the immediate parent is returned. The immediate parent may have a parent.
The parent layer, or null if the layer does not have a parent.

PerViewportColor

#Since v6.0
public Color PerViewportColor(Guid viewportId)
Gets the display color for this layer.
viewportId (Guid)If not Guid.Empty, then the setting applies only to the viewport with the specified id.
The display color.

PerViewportIsVisible

#Since v6.0
public bool PerViewportIsVisible(Guid viewportId)
Gets the per viewport visibility of this layer.
viewportId (Guid)If not Guid.Empty, then the visibility setting for that viewport is returned. If Guid.Empty, the IsVisible property is returned.
Returns true if objects on layer are visible.

PerViewportPersistentVisibility

#Since v6.0
public bool PerViewportPersistentVisibility(Guid viewportId)
Gets the per layer persistent visibility. The persistent viability setting is used for layers whose visibility can be changed by a parent layer. In this case, when a parent layer is turned off, then child layers are also turned off. The persistent visibility setting determines what happens when the parent is turned on again.
viewportId (Guid)
Return true if this layer's visibility in the specified viewport is controlled by a parent object and the parent is turned on (after being off), then this layer will also be turned on in the specified viewport. Returns false if this layer's visibility in the specified viewport is controlled by a parent object and the parent layer is turned on(after being off), then this layer will continue to be off in the specified viewport.

PerViewportPlotColor

#Since v6.0
public Color PerViewportPlotColor(Guid viewportId)
Gets the plot color for this layer.
viewportId (Guid)If not Guid.Empty, then the setting applies only to the viewport with the specified id.
The plot color.

PerViewportPlotWeight

#Since v6.0
public double PerViewportPlotWeight(Guid viewportId)
Gets the plot weight, in millimeters, for this layer.
viewportId (Guid)If not Guid.Empty, then the setting applies only to the viewport with the specified id.
The plot color.

RemoveCustomSectionStyle

#Since v8.0
public void RemoveCustomSectionStyle()

SetCustomSectionStyle

#Since v8.0
public void SetCustomSectionStyle(SectionStyle sectionStyle)
sectionStyle (SectionStyle)

SetPersistentLocking

#Since v5.5
public void SetPersistentLocking(bool persistentLocking)
Set the persistent locking setting for this layer
persistentLocking (bool)

SetPersistentVisibility

#Since v5.5
public void SetPersistentVisibility(bool persistentVisibility)
Set the global persistent visibility setting for this layer.
persistentVisibility (bool)

SetPerViewportColor

#Since v6.0
public void SetPerViewportColor(Guid viewportId, Color color)
Sets the display color for this layer.
viewportId (Guid)If not Guid.Empty, then the setting applies only to the viewport with the specified id.
color (Color)The display color.

SetPerViewportPersistentVisibility

#Since v6.0
public void SetPerViewportPersistentVisibility(Guid viewportId, bool persistentVisibility)
Sets the per layer persistent visibility. The persistent viability setting is used for layers whose visibility can be changed by a parent layer. In this case, when a parent layer is turned off, then child layers are also turned off. The persistent visibility setting determines what happens when the parent is turned on again.
viewportId (Guid)If not Guid.Empty, then the setting applies only to the viewport with the specified id. If Guid.Empty, then the setting applies to all viewports with per viewport layer settings.
persistentVisibility (bool)If true, this layer's visibility in the specified viewport is controlled by a parent object and the parent is turned on (after being off), then this layer will also be turned on in the specified viewport. If false, this layer's visibility in the specified viewport is controlled by a parent object and the parent layer is turned on (after being off), then this layer will continue to be off in the specified viewport.

SetPerViewportPlotColor

#Since v6.0
public void SetPerViewportPlotColor(Guid viewportId, Color color)
Sets the plot color for this layer.
viewportId (Guid)If not Guid.Empty, then the setting applies only to the viewport with the specified id.
color (Color)The plot color.

SetPerViewportPlotWeight

#Since v6.0
public void SetPerViewportPlotWeight(Guid viewportId, double plotWeight)
Sets the plot weight, in millimeters, for this layer.
viewportId (Guid)If not Guid.Empty, then the setting applies only to the viewport with the specified id.
plotWeight (double)The plot weight in millimeters. A weight of 0.0 indicates the "default" pen weight should be used. A weight of -1.0 indicates the layer should not be printed.

SetPerViewportVisible

#Since v6.0
public void SetPerViewportVisible(Guid viewportId, bool visible)
Controls layer visibility in specific viewports.
viewportId (Guid)If not Guid.Empty, then the setting applies only to the viewport with the specified id. If Guid.Empty, then the setting applies to all viewports with per viewport layer settings.
visible (bool)true to make layer visible, false to make layer invisible.

SetUserString

#Since v5.0
public bool SetUserString(string key, string value)
Attach a user string (key,value combination) to this geometry.
key (string)id used to retrieve this string.
value (string)string associated with key.
true on success.

ToJSON

public string ToJSON(SerializationOptions options)
Create a JSON string representation of this object
inherited fromCommonObject
options (SerializationOptions)

ToString

#
public override string ToString()

UnsetModelPersistentVisibility

#Since v8.0
public void UnsetModelPersistentVisibility()
Remove any model persistent visibility setting from this layer.

UnsetPersistentLocking

#Since v5.5
public void UnsetPersistentLocking()
Remove any explicitly persistent locking settings from this layer

UnsetPersistentVisibility

#Since v5.5
public void UnsetPersistentVisibility()
Remove any explicit persistent visibility setting from this layer

UnsetPerViewportPersistentVisibility

#Since v6.0
public void UnsetPerViewportPersistentVisibility(Guid viewportId)
Remove any per viewport persistent visibility setting so the layer's overall setting will be used for all viewports.
viewportId (Guid)If not Guid.Empty, then the setting for this viewport will be deleted. If Guid.Empty, the all per viewport visibility settings will be removed.

Operators

OperationResultDescription
Layer==Layerbool
Layer!=Layerbool