Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdgLayers

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
1f76172c94d1 with working tree changes
Implements
IReadOnlyList<OdgLayer> IReadOnlyCollection<OdgLayer> IEnumerable<OdgLayer> IEnumerable
Modifiers
sealed
Attributes
DefaultMember("Item")

Layers declared in one document, master, or page scope. Adding a layer set overrides inherited layers in that scope.

Inheritance

  • object
  • OdgLayers

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 5

Methods

public OdgLayer Add(string name, OdgLayerDisplay display = Always) #

Adds a uniquely named layer. Invalid legacy masks leave the existing layer set and saved views unchanged.

Parameters

name string required
display OfficeIMO.OpenDocument.OdgLayerDisplay = Always optional

Returns

OdgLayer
public OdgLayer? Find(string name) #

Finds a layer by its case-sensitive identifier.

Parameters

name string required

Returns

OdgLayer?
public IEnumerator<OdgLayer> GetEnumerator() #

Returns an enumerator that iterates through the collection.

Returns

IEnumerator<OdgLayer> An enumerator that can be used to iterate through the collection.

Properties

public int Count { get; } #

Number of declared layers.

public OdgLayer this[int index] { get; } #

A layer at a zero-based position.

Parameters

index int required