---
title: "Buttonize Constructor (Single, FadeType, Direction, Color, Color)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Buttonize_ctor_5_100ca8e5.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, Color, Color)
 
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, border fade type, and edges colors.
 
**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, _lightColor As Color, _shadowColor As Color _
)
```
 
```csharp
public Buttonize(float borderWidth,FadeType fadeType,Direction direction,Color lightColor,Color shadowColor
)
```
 
### 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.

 - lightColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
 [Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md) value specifying to draw highlighted edges. It is accessible later via [LightColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Buttonize_LightColor.htm.md) property.

 - shadowColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
 [Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md) value specifying to draw shadowed edges. It is accessible later via [ShadowColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Buttonize_ShadowColor.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)
