# VectorIcon class

Namespace: [Grasshopper2.UI.Icon.Vector](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.icon.vector.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-ba64-4792-9acf-45bd1328dfc9")]
public class VectorIcon : AbstractIcon, IStorable
```

Implements IIcon for vector graphics.

## Constructors

- [VectorIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/ctor.md): (2 overloads) Create a new vector icon.

## Fields

- [NullRank](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/nullrank.md): (static) Defines the null category, ie. the category that cannot be hidden.

## Properties

- [Size](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/size.md): Gets the frame within which this icon is positioned.

## Methods

- [DrawInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/drawinternal.md): Internal render method.
- [HandleStateChange](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/handlestatechange.md)
- [Hide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/hide.md): Hide a specific category.
- [Show](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/show.md): Show (ie. unhide) a specific category.
- [ShowAll](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/showall.md): Show all categories.
- [ShowOnly](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/showonly.md): Show a single category, hide all others.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/store.md): Serialise this icon.
- [ToSvgXml](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.vector.vectoricon/tosvgxml.md): Create an xml document from this icon.

## Inherited Members

- From [AbstractIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon.md): [States](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/states.md), [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/type.md), [AddState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/addstate.md), [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/draw.md), [DrawDropShadow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/drawdropshadow.md), [DrawToBitmap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/drawtobitmap.md), [FindState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/findstate.md), [MoveState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/movestate.md), [SetState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.abstracticon/setstate.md)
