GetGraphicsStyle

GraphicsStyle? GetGraphicsStyle(this Element element, GraphicsStyleType styleType = GraphicsStyleType.Projection)

Gets the graphics style (projection or cut) associated with the element's category. Returns null when unavailable.

Parameters

  • elementElement

    The element instance.

  • styleTypeGraphicsStyleType

    Projection or Cut (defaults to Projection).

Returns: The GraphicsStyle, or null if unavailable.

Example

GraphicsStyle? gs = element.GetGraphicsStyle(GraphicsStyleType.Cut);