Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OdgLayers

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
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

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

Returned or exposed by

Methods

public OdgLayer Add(String name, OdgLayerDisplay display = Always) #
Returns: OdgLayer

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

Parameters

name System.String requiredposition: 0
display OfficeIMO.OpenDocument.OdgLayerDisplay = Always optionalposition: 1
public OdgLayer Find(String name) #
Returns: OdgLayer

Finds a layer by its case-sensitive identifier.

Parameters

name System.String requiredposition: 0
public IEnumerator<OdgLayer> GetEnumerator() #
Returns: IEnumerator<OdgLayer>

Returns an enumerator that iterates through the collection.

Returns

An enumerator that can be used to iterate through the collection.

Properties

public Int32 Count { get; } #

Number of declared layers.

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

A layer at a zero-based position.

Parameters

arg1 System.Int32 requiredposition: 0