---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/IconFit
---

# IconFit

## Overview

`IconFit` is a class in Aspose.PDF FOSS for .NET.

PDF Annotation Handler "IF" entry — icon-fit dictionary for push-button widgets.

This class provides 4 methods for working with IconFit objects in .NET programs.
Available methods include: `NameToScalingMode`, `NameToScalingReason`, `ScalingModeToName`, `ScalingReasonToName`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `LeftoverBottom`, `LeftoverLeft`, `ScalingMode`, `ScalingReason`, `SpreadOnBorder`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `ScalingMode` | `ScalingMode` | Read/Write | Gets or sets the scaling mode. |
| `ScalingReason` | `ScalingReason` | Read/Write | Gets or sets the scaling reason. |
| `LeftoverLeft` | `double` | Read/Write | Gets or sets the leftover left. |
| `LeftoverBottom` | `double` | Read/Write | Gets or sets the leftover bottom. |
| `SpreadOnBorder` | `bool` | Read/Write | Gets or sets the spread on border. |

## Methods

| Signature | Description |
|-----------|-------------|
| `NameToScalingMode(mode: string)` | Calls NameToScalingMode on this IconFit instance. |
| `NameToScalingReason(reason: string)` | Calls NameToScalingReason on this IconFit instance. |
| `ScalingModeToName(mode: ScalingMode)` | Calls ScalingModeToName on this IconFit instance. |
| `ScalingReasonToName(reason: ScalingReason)` | Calls ScalingReasonToName on this IconFit instance. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)