Class
OdgLayers
OfficeIMO.OpenDocument
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
- Property OdgDocument.Layers
- Property OdgMasterPage.Layers
- Property OdgPage.EffectiveLayers
- Property OdgPage.Layers
- Property OdgPage.MasterLayers
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
- display OfficeIMO.OpenDocument.OdgLayerDisplay = Always
Returns
OdgLayerpublic OdgLayer? Find(string name) #Finds a layer by its case-sensitive identifier.
Parameters
- name string
Returns
OdgLayer?public IEnumerator<OdgLayer> GetEnumerator() #Returns an enumerator that iterates through the collection.