    

 ## On this page

  

 

 # Class VisibilityManager

 Last update: 09.03.2026 

Namespace: [OpenTD](OpenTD.md)  
Assembly: OpenTD.dll

```csharp
public class VisibilityManager

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [VisibilityManager](OpenTD.VisibilityManager.md)

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), [object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Methods

### DisplayAll()

Turn visibility on for all objects. Does not affect layers or global type controls.

```csharp
public void DisplayAll()

```

### DisplayOnly(IEnumerable&lt;string&gt;)

Turn visibility on for objects identified by handles. Turn off visibility for all other others. Does not affect layers or global type controls.

```csharp
public void DisplayOnly(IEnumerable<string> handles)

```

#### Parameters

`handles` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

### DisplayOnly(string)

Turn visibility one for object identified by handle. Turn off visibility for all other others. Does not affect layers or global type controls.

```csharp
public void DisplayOnly(string handle)

```

#### Parameters

`handle` [string](https://learn.microsoft.com/dotnet/api/system.string)

### GetIdVisibility(IEnumerable&lt;string&gt;)

Get list of bools for whether IDs for objects selected by handles are visible. Does not account for layers or global type controls. Objects that cannot have IDs displayed will always return false.

```csharp
public List<bool> GetIdVisibility(IEnumerable<string> handles)

```

#### Parameters

`handles` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;[bool](https://learn.microsoft.com/dotnet/api/system.boolean)&gt;

### GetIdVisibility(string)

Get bool for whether ID single object selected by handle is visible. Does not account for layers or global type controls. Objects that cannot have IDs displayed will always return false.

```csharp
public bool GetIdVisibility(string handle)

```

#### Parameters

`handle` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### GetVisibility(IEnumerable&lt;string&gt;)

Get list of bools for whether objects selected by handles are set to visible. Does not account for layers or global type controls.

```csharp
public List<bool> GetVisibility(IEnumerable<string> handles)

```

#### Parameters

`handles` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;[bool](https://learn.microsoft.com/dotnet/api/system.boolean)&gt;

### GetVisibility(string)

Get bool for single object selected by handle is set to visible. Does not account for layers or global type controls.

```csharp
public bool GetVisibility(string handle)

```

#### Parameters

`handle` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### SetIdsOff(IEnumerable&lt;string&gt;)

Turn off ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.

```csharp
public void SetIdsOff(IEnumerable<string> handles)

```

#### Parameters

`handles` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

### SetIdsOff(string)

Turn off ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.

```csharp
public void SetIdsOff(string handle)

```

#### Parameters

`handle` [string](https://learn.microsoft.com/dotnet/api/system.string)

### SetIdsOn(IEnumerable&lt;string&gt;)

Turn on ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.

```csharp
public void SetIdsOn(IEnumerable<string> handles)

```

#### Parameters

`handles` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

### SetIdsOn(string)

Turn on ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.

```csharp
public void SetIdsOn(string handle)

```

#### Parameters

`handle` [string](https://learn.microsoft.com/dotnet/api/system.string)

### SetVisibilityOff(IEnumerable&lt;string&gt;)

Turn off visibility for objects identified by handles. Does not affect layers or global type controls.

```csharp
public void SetVisibilityOff(IEnumerable<string> handles)

```

#### Parameters

`handles` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

### SetVisibilityOff(string)

Turn off visibility for one object identified by handle. Does not affect layers or global type controls.

```csharp
public void SetVisibilityOff(string handle)

```

#### Parameters

`handle` [string](https://learn.microsoft.com/dotnet/api/system.string)

### SetVisibilityOn(IEnumerable&lt;string&gt;)

Turn on visibility for objects identified by handles. Does not affect layers or global type controls.

```csharp
public void SetVisibilityOn(IEnumerable<string> handles)

```

#### Parameters

`handles` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

### SetVisibilityOn(string)

Turn on visibility for one object identified by handle. Does not affect layers or global type controls.

```csharp
public void SetVisibilityOn(string handle)

```

#### Parameters

`handle` [string](https://learn.microsoft.com/dotnet/api/system.string)