---
title: "TextStyle.SetFontIndex"
url: "https://reference.aspose.com/pub/net/aspose.pub/textstyle/setfontindex/"
product: "Aspose.PUB for .NET API Reference"
description: "TextStyle method. Sets index of font name in Document.FontNames array"
---

## TextStyle.SetFontIndex method

Sets index of font name in Document.FontNames array

```csharp
public void SetFontIndex(int value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | Int32 | Value of font index |

### See Also

* class [TextStyle](../)
* namespace [Aspose.Pub](../../textstyle/)
* assembly [Aspose.PUB](../../../)


