# GraphicsExtensionMethods.DrawAnchoredText examples

Examples for [DrawAnchoredText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.graphicsextensionmethods/drawanchoredtext.md) in Grasshopper2.Extensions.GraphicsExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
RectangleF result = graphics.DrawAnchoredText(font, colour, text, anchor, point);

// As a static method
result = GraphicsExtensionMethods.DrawAnchoredText(graphics, font, colour, text, anchor, point);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2.Extensions
clr.ImportExtensions(Grasshopper2.Extensions)

# As an extension method
result = graphics.DrawAnchoredText(font, colour, text, anchor, point)

# As a static method
result = Grasshopper2.Extensions.GraphicsExtensionMethods.DrawAnchoredText(graphics, font, colour, text, anchor, point)
```
