API Reference
Class
OdgLayers
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
- Property OdgDocument.Layers
- Property OdgPage.EffectiveLayers
- Property OdgPage.Layers
- Property OdgPage.MasterLayers
Methods
public OdgLayer Add(String name, OdgLayerDisplay display = Always) #Returns:
OdgLayerAdds a uniquely named layer. Invalid legacy masks leave the existing layer set and saved views unchanged.
Parameters
- name System.String
- display OfficeIMO.OpenDocument.OdgLayerDisplay = Always
public OdgLayer Find(String name) #Returns:
OdgLayerFinds a layer by its case-sensitive identifier.
Parameters
- name System.String
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.