# Rotation

URL: https://docs.wisej.com/api/wisej.web/extenders/rotation

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

- [Component](/api/wisej.base/general/wisej.base.component)
- [Component](/api/wisej.web/general/wisej.web.component)
- Rotation
Add rotation capabilities along the X,Y,Z axis toControl controls.

- C# - VB.NET

```csharp
public class Rotation : Component, IWisejExtenderProvider, IExtenderProvider
```

```visual
Public Class Rotation
    Inherits Component
    Implements IWisejExtenderProvider, IExtenderProvider
```

## Constructors

### ![Instance member](/img/api/instance.png) Rotation()

Initializes a new instance of theRotation extender without a specified container.

### ![Instance member](/img/api/instance.png) Rotation(container)

Initializes a new instance of theRotation extender with a specified container.

| Name | Type | Description | **container** | [IContainer](https://docs.microsoft.com/dotnet/api/system.componentmodel.icontainer) | An [IContainer](https://docs.microsoft.com/dotnet/api/system.componentmodel.icontainer) that represents the container of theRotation extender. 

## Properties

### ![Instance member](/img/api/instance.png) Tag

[Object](https://docs.microsoft.com/dotnet/api/system.object) : Returns or sets the object that contains programmer-supplied data associated with the [StyleSheet](/api/wisej.web/extenders/wisej.web.stylesheet) extender. (Default: `null` )

## Methods

### ![Instance member](/img/api/instance.png) CanExtend(target)

Returns true if theRotation extender can offer an extender property to the specified target component.

| Parameter | Type | Description | **target** | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The target object to add an extender property to. 

**Returns:**[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) . true if theRotation class can offer one or more extender properties; otherwise, false.

### ![Instance member](/img/api/instance.png) Clear()

Removes all rotation properties.

### ![Protected member](/img/api/protected.png) Dispose(disposing)

| Parameter | Type | Description | **disposing** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | 

### ![Instance member](/img/api/instance.png) GetRotation(control)

Rotation properties.

| Parameter | Type | Description | **control** | Control | TheControl for which to retrieve the rotation properties. 

**Returns:**[Properties](/api/wisej.web/extenders/rotation/wisej.web.rotation.properties) . A [Properties](/api/wisej.web/extenders/rotation/wisej.web.rotation.properties) instance with the rotation properties.

### ![Protected member](/img/api/protected.png) OnWebRender(config)

Renders the client component.

| Parameter | Type | Description | **config** | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Dynamic configuration object. 

### ![Instance member](/img/api/instance.png) ResetRotation(control)

Removes all the rotation properties from the *control* .

| Parameter | Type | Description | **control** | Control | Control to remove from theRotation extender. 

### ![Instance member](/img/api/instance.png) SetRotation(control, properties)

Assigns the rotation properties to the control.

| Parameter | Type | Description | **control** | Control | The control to rotate. | **properties** | [Properties](/api/wisej.web/extenders/rotation/wisej.web.rotation.properties) | An instance of [Properties](/api/wisej.web/extenders/rotation/wisej.web.rotation.properties) defining the rotation style. 

## Implements

| Name | Description | [IUserData](/api/wisej.web/interfaces/wisej.web.iuserdata) | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface. | [IWisejComponent](/api/wisej.core/interfaces/wisej.core.iwisejcomponent) | All wisej components implement this interface. | [IWisejExtenderProvider](/api/wisej.core/interfaces/wisej.core.iwisejextenderprovider) | Defines the interface for extending properties to other components in a container. | [IWisejSerializable](/api/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.
