Class Layer
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Data.dll
public abstract class Layer : IIsDisposed, IDisposable, ICloneable
- Inheritance
-
Layer
- Implements
- Derived
- Inherited Members
Constructors
Properties
- IsBackground
This property no longer has any effect.
- Name
A user-definable name.
- Visible
Determines whether the layer is part of a document's composition. If this property is false, the composition engine will ignore this layer.
Methods
- Invalidate()
Causes the entire layer surface to be invalidated.
- Invalidate(Rectangle)
Causes a portion of the layer surface to be invalidated.
- PerformPropertyChanged()
You can call this to raise the PropertyChanged event. Note that is will raise the event with an empty string for the property name description. Thus it is useful only for syncing up UI elements that require notification of events but that otherwise don't really track it.
- SaveProperties()
Allows you to save the mutable properties of the layer so you can restore them later (esp. important for undo!). Mutable properties include the layer's name, whether it's visible, and the metadata. This list might expand later.