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 propertyActiveIndex
Index of the markup being viewed or edited, or -1 when none is (including while creating a new markup).
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 methodCancel
Discards the current markup edit or create session, or stops viewing a markup.
Public methodClear
Marks all items as deleted.
(Inherited from CommonComponentTableT.)
Public methodCreate(RhinoView, IEnumerableGeometryBase)
Adds a markup and its content without a markup session, as one undo step. The geometry is added to the document as the markup's content, and the view, captured before it is added, becomes the background. Any geometry type is allowed. It should lie on a plane parallel to the view, as markup tools draw it, but this is not enforced.
Public methodCreate(RhinoView, IEnumerableGeometryBase, IEnumerableObjectAttributes)
Adds a markup and its content without a markup session, as one undo step. The geometry is added to the document as the markup's content, and the view, captured before it is added, becomes the background. Any geometry type is allowed. It should lie on a plane parallel to the view, as markup tools draw it, but this is not enforced.
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 methodEdit
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 methodGetActiveObjectIds
Ids of the document objects in the open markup create or edit session, including a new markup not yet saved to the table.
Public methodGetEnumerator (Overrides CommonComponentTableTGetEnumerator.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectIds
Ids of the document objects that make up a markup's content. Editable only during Edit(Int32).
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 methodSave
Saves the current markup edit or create session, like the on-screen checkmark. Undoable as one step.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodView
Shows a markup in the active view, as the Markups panel does. Ends any current markup session first.
Top
See Also