Click or drag to resize

SectionStyleTable Class

Section style table
Inheritance Hierarchy
SystemObject
  Rhino.FileIOCommonComponentTableSectionStyle
    Rhino.DocObjects.TablesRhinoDocCommonTableSectionStyle
      Rhino.DocObjects.TablesSectionStyleTable

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public sealed class SectionStyleTable : RhinoDocCommonTable<SectionStyle>, 
	ICollection<SectionStyle>, IEnumerable<SectionStyle>, IEnumerable

The SectionStyleTable type exposes the following members.

Properties
  NameDescription
Public propertyActiveCount
Returns number of section styles in the table, excluding deleted section styles.
Public propertyComponentType (Overrides CommonComponentTableTComponentType.)
Public propertyCount
Returns number of section styles in the section style table, including deleted section styles.
Public propertyDocument
Document that owns this table.
Public propertyItem
Conceptually, the section style table is an array of section styles. The operator[] can be used to get individual section styles. A section style is either active or deleted and this state is reported by SectionStyle.IsDeleted.
Top
Methods
  NameDescription
Public methodAdd
Adds a new section style with specified definition to the table.
Public methodAddReferenceSectionStyle
Adds a reference section style that will not be saved in files.
Public methodClear
Marks all items as deleted.
(Inherited from CommonComponentTableT.)
Public methodDelete(SectionStyle)
Deletes a section style.
(Overrides CommonComponentTableTDelete(T).)
Public methodDelete(IEnumerableInt32, Boolean)
Delete multiple section styles.
Public methodDelete(Int32, Boolean)
Deletes a section style.
Public methodDelete(IEnumerableInt32, Boolean, Int32)
Delete multiple section styles.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFind(String)
Finds the section style with a given name.
Public methodFind(Guid, Boolean)
Finds a section style with a matching ID.
Public methodFindId
Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.
(Inherited from CommonComponentTableT.)
Public methodFindIndex
Retrieves a section style based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
Public methodFindName
Finds the section style with a given name.
Public methodGetEnumerator (Overrides CommonComponentTableTGetEnumerator.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnusedSectionStyleName
Gets unused section style name used as default when creating new section styles.
Public methodInUse
Returns true if a section style is use by an object, layer, or instance definition.
Public methodModify
Modify section style settings.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also