Class LineWidthSwap
A utility class for temporarily changing the line width and restoring it when disposed.
public class LineWidthSwap : IDisposable
- Inheritance
-
LineWidthSwap
- Implements
- Inherited Members
- Extension Methods
Constructors
LineWidthSwap(double)
Initializes a new instance of the LineWidthSwap class.
public LineWidthSwap(double lineWidth)
Parameters
lineWidth
doubleThe new line width to set.
Properties
PreLineWidth
Gets the previous line width value that will be restored on disposal.
public float PreLineWidth { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool