# OdgLayer

An XML-backed Draw layer. Protection is an editing hint for native applications.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`7fbbd72e7c5a` with working tree changes

**Source**

[OdgLayers.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.OpenDocument/Drawing/OdgLayers.cs#L52)

**Modifiers**

sealed

An XML-backed Draw layer. Protection is an editing hint for native applications.

## Inheritance

- object
- OdgLayer

## Usage

Explore 4 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 4

- Method [OdgLayers.Add](/api/open-document/officeimo-opendocument-odglayers/#method-add-string-officeimo-opendocument-odglayerdisplay)
- Method [OdgLayers.Find](/api/open-document/officeimo-opendocument-odglayers/#method-find-string)
- Method [OdgLayers.GetEnumerator](/api/open-document/officeimo-opendocument-odglayers/#method-getenumerator)
- Property [OdgLayers.Item](/api/open-document/officeimo-opendocument-odglayers/#property-item-int32)

Filter members 

Show inherited

## Methods

`public bool IsVisible(bool forPrint = false)` [#](#method-isvisible-boolean)

[OdgLayers.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.OpenDocument/Drawing/OdgLayers.cs#L52)

Whether this layer participates in the selected output intent.

Parameters

**forPrint bool = false optional**

Returns

`bool`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; }` [#](#property-name)

[OdgLayers.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.OpenDocument/Drawing/OdgLayers.cs#L24)

Layer identifier referenced by shapes.

`public OdgLayerDisplay Display { get; set; }` [#](#property-display)

[OdgLayers.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.OpenDocument/Drawing/OdgLayers.cs#L27)

Screen and print visibility. Invalid legacy masks leave the layer and saved views unchanged.

`public bool IsProtected { get; set; }` [#](#property-isprotected)

[OdgLayers.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.OpenDocument/Drawing/OdgLayers.cs#L40)

Whether native applications should protect the layer from interactive editing.

<!-- PowerForge markdown artifact sha256:885B4E2A920FE7FF75162D2FA893A05E4196FFAFC07F735518DC045DC92F9F38 -->
