# GraphicsExtensionMethods.DrawTextInFrame examples

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

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
graphics.DrawTextInFrame(font, colour, text, frame, horizontal);

// As a static method
GraphicsExtensionMethods.DrawTextInFrame(graphics, font, colour, text, frame, horizontal);
```

## Python

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

# As an extension method
graphics.DrawTextInFrame(font, colour, text, frame, horizontal)

# As a static method
Grasshopper2.Extensions.GraphicsExtensionMethods.DrawTextInFrame(graphics, font, colour, text, frame, horizontal)
```
