---
title: "Buttonize Constructor (Single, FadeType, Direction)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Buttonize_ctor_3_a30a8d1d.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/)

# Buttonize Constructor (Single, FadeType, Direction)
 
Creates and initializes [Buttonize](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Buttonize.htm.md) transform object. At this constructor you can set button edge width and parameters defining edges appearance as lighting direction and border fade type.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _borderWidth As Single, _fadeType As FadeType, _direction As Direction _
)
```
 
```csharp
public Buttonize(float borderWidth,FadeType fadeType,Direction direction
)
```
 
### Parameters
 
 - borderWidth
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Border (button edge) width. It is accessible later via [BorderWidth](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Buttonize_BorderWidth.htm.md) property.

 - fadeType
     - Type: [Aurigma.GraphicsMill.Transforms.FadeType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_FadeType.htm.md)
 [FadeType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_FadeType.htm.md) value specifying a fade type used to draw button edges. It is accessible later via [FadeType](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Buttonize_FadeType.htm.md) property.

 - direction
     - Type: [Aurigma.GraphicsMill.Transforms.Direction](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Direction.htm.md)
 [Direction](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Direction.htm.md) value specifying lightning direction used to draw button edges. It is accessible later via [Direction](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Buttonize_Direction.htm.md) property.
   
## See Also

### Reference

- [Buttonize Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Buttonize.htm.md)
- [Buttonize Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Buttonize_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
