# RulerBarViewGenerator.Create Method

> Initializes the resources of a newly instantiated object. This method must be called before using the object. To release created resources, Dispose should be called after using the object.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > RulerBarViewGenerator.Create Method
- **326 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/create-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/create-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/create-method/llms-full.txt

---

### Description

Initializes the resources of a newly instantiated object. This method must be called before using the object. To release created resources, `Dispose` should be called after using the object.

### Syntax

```csharp
public bool Create();
```

```vbnet
Public Function Create() As Boolean
```

### Return Value

The return value is true, if the object could be initialized. Otherwise, it is false.

### Examples

The following example creates the ruler bar view generator.

```csharp
if (rulerBarViewGenerator.Create())
{
    Console.WriteLine("Create completed successfully.");
}
```

```vbnet
If rulerBarViewGenerator.Create() Then
    Console.WriteLine("Create completed successfully.")
End If
```

---

## Nearby

- **Previous:** [RulerBarViewGenerator Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/constructor/llms-full.txt)
- **Next:** [RulerBarViewGenerator.DisplayColors Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/displaycolors-property/llms-full.txt)
