<Code Lib>
2026 Class
Changes 0
C

LinePattern

Description:
Represents a line pattern definition.
Remarks:
A line pattern is a pattern of dashes and dots used to control the way the lines of an object are drawn in Revit. Line patterns are used in the definition of GraphicsStyle objects. A line pattern is defined by a repeating sequence segments. Each segment is a dash, a dot or a space. A line pattern definition must contain an even number of segments, starting with a visible segment (a dash or a dot) and alternating between visible segments and spaces.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.LinePattern

public class LinePattern : IDisposable

Name Return Type Description Inherited From
C LinePattern() LinePattern Creates a simple line pattern.
C LinePattern(String) LinePattern Creates a line pattern with given name.

Name Return Type Description Inherited From
M Dispose() None Releases all resources used by the LinePattern
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetSegments() IList<LinePatternSegment> Gets the sequence of segments that defines this line pattern.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M SetSegments(IList<LinePatternSegment>) None
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object

Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P Name string Line pattern name.

Loading…