---
title: "VObject Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_VObject.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# VObject Class
 
This is a base class for any v-object.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls.VectorObjects (in Aurigma.GraphicsMill.WinControls.VectorObjects.dll)
 
## Syntax
  
```
<SerializableAttribute> _
Public MustInherit Class VObject _Implements IVObject, IControlPointsProvider, ISerializable, IDisposable
```
 
```csharp
[SerializableAttribute]
public abstract class VObject : IVObject, IControlPointsProvider, ISerializable, IDisposable
```
 
## Remarks
  
You can inherit from this class when you need to implement a custom v-object. To do it, you should implement:
 
- [HitTest(PointF, Single)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_VObject_HitTest_2_73e02abb.htm.md) method which checks whether a point with specific coordinates belongs to a v-object.
- [Draw(Rectangle, Graphics, ICoordinateMapper)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_VObject_Draw_3_d211987a.htm.md) method which draws the v-object on the surface of the control.
- [GetVObjectBounds()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_VObject_GetVObjectBounds.htm.md) and [GetTransformedVObjectBounds()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_VObject_GetTransformedVObjectBounds.htm.md) methods which return the bounds of the object.

Few of other minor members may be required to be implemented, but these one are the most essential.
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - Aurigma.GraphicsMill.WinControls.VObject
        - [Aurigma.GraphicsMill.WinControls.PathVObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_PathVObject.htm.md)
        - [Aurigma.GraphicsMill.WinControls.CompositeVObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_CompositeVObject.htm.md)
        - [Aurigma.GraphicsMill.WinControls.ImageVObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ImageVObject.htm.md)
 
## Thread Safety
 Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
 
## Object Model

[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.WinControls.VectorObjects_ObjectModel_22.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_VObject.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.WinControls.VectorObjects_ObjectModel_20.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IDesigner.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.WinControls.VectorObjects_ObjectModel_2.png)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.WinControls.VectorObjects_ObjectModel_4.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IVObjectActionCollection.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.WinControls.VectorObjects_ObjectModel_3.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IControlPointCollection.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel1.png)![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.WinControls.VectorObjects_ObjectModel_21.png)
  
## See Also

### Reference

- [VObject Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_WinControls_VObject.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)

### Manual

- [How to Use Vector Objects](https://www.graphicsmill.com/docs/gm5/HowToUseVectorObjects.htm.md)
