# IAttributes interface

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public interface IAttributes
```

Provides the methods required for the UI interaction with document objects. Attributes are typically *not* deserialized, so all persistent properties ought to be part of the owner document object.

**Derived types:** [Attributes<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.attributes-1.md), [IParameterAttributes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iparameterattributes.md)

## Properties

- [AggregateBounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/aggregatebounds.md): Gets the aggregate bounds of this object. This will include the bounds of all objects attached in some way to this object.
- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/bounds.md): Gets the total outer bounds of the attributes. The attributes are assumed not to exist beyond this limit. Note that the bounds are updated during calls to Layout(), so may be out-of-date or even unset when called outside of the usual process.
- [Owner](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/owner.md): Gets the owner object of these attributes.
- [Pivot](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/pivot.md): Gets or sets the pivot point for these attributes. The pivot is the main point around which the attribute geometry is positioned during layout.
- [Snappable](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/snappable.md): Gets whether these attributes can be used to align other objects on the canvas. Return false specifically when your object shape is not rectangular.

## Methods

- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/draw.md): Render the owner object of these attributes.
- [HandleDoubleClick](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/handledoubleclick.md): Handle a double click operation on these attributes. Since this is such a common operation it is provided by the base interface, rather than requiring an IResponseAttribues implementation.
- [Intersects](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/intersects.md): Test whether a given rectangle intersects the shape of these attributes.
- [InvalidateDisplay](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/invalidatedisplay.md): Signals that the attribute's visual appearance has changed without affecting layout (e.g. mouseover row highlight in a value list). Fires the owner's [DocumentObject.OnDisplayChanged()](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.documentobject/ondisplaychanged.md), which the canvas listens to and uses to schedule a redraw.
- [InvalidateLayout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/invalidatelayout.md): Marks the attribute's layout as dirty so it gets recomputed on the next draw cycle. Call this when something changes that affects the attribute's shape, size, or internal structure. Note that calling this does not automatically repaint whatever control is currently showing these attributes — pair it with an OnLayoutChanged() call on the owner if you need an immediate redraw.
- [IsCoincident](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/iscoincident.md): Test whether a given point is considered to be on the interior of these attributes.
- [IsContained](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/iscontained.md): Test whether the shape of these attributes is fully contained within a given rectangle.
- [Layout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/layout.md): Perform a layout operation on these attributes. Layout() ought to be called as part of every control painting process.
- [Move](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/move.md): Move these attributes a certain amount in X and Y.
- [ShowTooltipAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iattributes/showtooltipat.md): Display the tooltip at the given point. The tooltip can be accessed via `Tooltip`.
