Method SetFromStyle
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetFromStyle()
Takes away what the object holds of its own over its style, as AutoCAD's SetFromStyle, so that it is drawn as
its style draws it: a dimension and a leader lose their overrides of the dimension style (the list DSTYLE of their
extended data of ACAD), a DxfDimension of Dimasz 4.5 of its own over a style of 3.5 reading
3.5 again; a DxfMLeader takes the values of its multileader style, as its own
SetFromStyle() says; a DxfTable loses its own overrides and its cells', as its own
SetFromStyle() says. An object of no style changes nothing.
public virtual bool SetFromStyle()
Returns
- bool
Whether the object has a style it is set from, as AutoCAD answers: true for a table, and for a dimension, a leader and a multileader of a style its drawing has (for a copy in no file, the drawing it was copied from); false, and nothing changed, for one of a style its drawing has not, or in no drawing, and for every other object.
Exceptions
- InvalidOperationException
Thrown when the object has overrides to take away and is erased.