Click or drag to resize

MarkupTable Class

Collection of markups for a document
Inheritance Hierarchy
SystemObject
  Rhino.FileIOCommonComponentTableMarkup
    Rhino.DocObjects.TablesRhinoDocCommonTableMarkup
      Rhino.DocObjects.TablesMarkupTable

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

The MarkupTable type exposes the following members.

Properties
  NameDescription
Public propertyActiveCount
Returns number of markups in the table, excluding deleted markups.
Public propertyComponentType (Overrides CommonComponentTableTComponentType.)
Public propertyCount
Returns number of markups in the table, including deleted markups.
Public propertyDocument
Document that owns this table.
Public propertyItem
Conceptually, the markup table is an array of markups. The operator[] can be used to get individual markups. A markup is either active or deleted and this state is reported by Markup.IsDeleted.
Top
Methods
  NameDescription
Public methodAdd
Adds a new markup with specified definition to the table.
Public methodAddReferenceMarkup
Adds a reference markup that will not be saved in files.
Public methodClear
Marks all items as deleted.
(Inherited from CommonComponentTableT.)
Public methodDelete(Markup)
Deletes a markup.
(Overrides CommonComponentTableTDelete(T).)
Public methodDelete(IEnumerableInt32, Boolean)
Delete multiple markups.
Public methodDelete(Int32, Boolean)
Deletes a markup.
Public methodDelete(IEnumerableInt32, Boolean, Int32)
Delete multiple markups.
Public methodDuplicate
Duplicates a markup.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFind(String)
Finds the markup with a given name.
Public methodFind(Guid, Boolean)
Finds a markup 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 markup based on Index. This type of search is discouraged. We are moving towards using only IDs for all tables.
Public methodFindName
Finds the markup 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 methodGetUnusedMarkupName
Gets unused markup name used as default when creating new markups.
Public methodModify
Modify markup settings.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also