---
title: "Buttonize Constructor (Single, FadeType, Direction, Boolean, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Buttonize_ctor_5_b77b1e95.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, Boolean, Boolean)
 
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. Besides you can enable/disable horizontal or vertical edges here.
 
**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, _horizontalBorder As Boolean, _verticalBorder As Boolean _
)
```
 
```csharp
public Buttonize(float borderWidth,FadeType fadeType,Direction direction,bool horizontalBorder,bool verticalBorder
)
```
 
### 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.

 - horizontalBorder
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value specifying whether to show horizontal border. It is accessible later via [HorizontalBorder](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Buttonize_HorizontalBorder.htm.md) property.

 - verticalBorder
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value specifying whether to show vertical border. It is accessible later via [VerticalBorder](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Buttonize_VerticalBorder.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)
