# SectionStyle class

Namespace: [Rhino.DocObjects](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.docobjects.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
[Serializable]
public sealed class SectionStyle : ModelComponent
```

SectionStyle helps define the attributes to use when drawing a section

## Constructors

- [SectionStyle](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/ctor.md): (2 overloads) Create a new instance of a SectionStyle

## Properties

- [BackgroundFillColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/backgroundfillcolor.md): Fill color to apply to the background. Default is Color.Empty which means get the color from the source where this section style came from (object attributes or layer)
- [BackgroundFillMode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/backgroundfillmode.md): How the background should be filled
- [BackgroundFillPrintColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/backgroundfillprintcolor.md): Fill print color to apply to the background. Default is Color.Empty which means get the color from the source where this section style came from (object attributes or layer)
- [BoundaryColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/boundarycolor.md): Color to apply for the boundary curves. Default is Color.Empty which means get the color from the source where this section style came from (object attributes or layer)
- [BoundaryLinetypeIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/boundarylinetypeindex.md)
- [BoundaryPlotWeightMillimeters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/boundaryplotweightmillimeters.md): Plot width of the boundary curves. values less than -1 (-10 is default): plot weight is determined by the object's attributes -1: do not plot 0: use default weight defined by the print dialog positive values are thicknesses in millimeters to print to NOTE: if a linetype is assigned to this section style that has a physical width (not pixels), then this value is ignored and the linetype value is used
- [BoundaryPrintColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/boundaryprintcolor.md): Print color to apply for the boundary curves. Default is Color.Empty which means get the color from the source where this section style came from (object attributes or layer)
- [BoundaryVisible](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/boundaryvisible.md): Should the boundary for this section be displayed
- [BoundaryWidthScale](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/boundarywidthscale.md): Scale applied to the boundary wire thickness
- [ComponentType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/componenttype.md): Returns [ModelComponentType.SectionStyle](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponenttype.md).
- [HatchIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/hatchindex.md): Hatch pattern to use when drawing a fill pattern
- [HatchPatternColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/hatchpatterncolor.md): Color to apply for the hatch pattern. Default is Color.Empty which means get the color from the source where this section style came from (object attributes or layer)
- [HatchPatternPlotWeightMillimeters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/hatchpatternplotweightmillimeters.md): Plot width of the hatch pattern curves. values less than -1 (-10 is default): plot weight is determined by the object's attributes -1: do not plot 0: use default weight defined by the print dialog positive values are thicknesses in millimeters to print to
- [HatchPatternPrintColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/hatchpatternprintcolor.md): Print color to apply for the hatch pattern. Default is Color.Empty which means get the color from the source where this section style came from (object attributes or layer)
- [HatchRotationRadians](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/hatchrotationradians.md): Rotation to apply to the hatch patterh
- [HatchScale](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/hatchscale.md): Scale to apply to the hatch pattern
- [InUse](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/inuse.md): Returns true if a section style is use by an object, layer, or instance definition.
- [IsUnset](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/isunset.md): Returns true if the section style is unset.
- [SectionFillRule](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/sectionfillrule.md): Rule to determine when to generate a hatch pattern and fill

## Methods

- [GetBoundaryLinetype](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/getboundarylinetype.md): Get an optional custom linetype associated with this section style. If null, then the linetype will come from the parent attributes or layer
- [ReadFromFile](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/readfromfile.md): (static) Reads linetypes from a Rhino .3dm file.
- [RemoveBoundaryLinetype](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/removeboundarylinetype.md)
- [SetBoundaryLinetype](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.sectionstyle/setboundarylinetype.md)

## Inherited Members

- From [ModelComponent](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent.md): [ComponentStatus](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/componentstatus.md), [DeletedName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/deletedname.md), [HasId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/hasid.md), [HasIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/hasindex.md), [HasName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/hasname.md), [Id](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/id.md), [IdIsLocked](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/idislocked.md), [Index](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/index.md), [IndexIsLocked](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/indexislocked.md), [InstanceDefinitionModelSerialNumber](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/instancedefinitionmodelserialnumber.md), [IsComponentStatusLocked](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/iscomponentstatuslocked.md), [IsDeleted](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/isdeleted.md), [IsReference](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/isreference.md), [IsSystemComponent](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/issystemcomponent.md), [ModelSerialNumber](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/modelserialnumber.md), [Name](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/name.md), [NameIsLocked](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/nameislocked.md), [ReferenceModelSerialNumber](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/referencemodelserialnumber.md), [ClearId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/clearid.md), [ClearIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/clearindex.md), [ClearName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/clearname.md), [DataCRC](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/datacrc.md), [LockId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/lockid.md), [LockIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/lockindex.md), [LockName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/lockname.md), [ToString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponent/tostring.md)
- From [CommonObject](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject.md): [Disposed](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/disposed.md), [HasUserData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/hasuserdata.md), [IsDocumentControlled](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/isdocumentcontrolled.md), [IsValid](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/isvalid.md), [UserData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/userdata.md), [UserDictionary](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/userdictionary.md), [ConstructConstObject](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/constructconstobject.md), [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/dispose.md), [EnsurePrivateCopy](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/ensureprivatecopy.md), [GetObjectData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/getobjectdata.md), [IsValidWithLog](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/isvalidwithlog.md), [NonConstOperation](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/nonconstoperation.md), [OnSwitchToNonConst](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/onswitchtononconst.md), [ToJSON](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/tojson.md)
