    

 ## On this page

  

 

 # OpenTD.VisibilityManager Class Reference

 Last update: 16.07.2025 

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

void [DisplayAll](#a5f168273f8b1cfbebfdfad194d6534bb) () Turn visibility on for all objects. Does not affect layers or global type controls.   
 void [DisplayOnly](#a894a879eac5068dc6becd0f6d5f98b10) (IEnumerable&lt; string &gt; handles) Turn visibility on for objects identified by handles. Turn off visibility for all other others. Does not affect layers or global type controls.   
 void [DisplayOnly](#a0375c1356961ba4e16d4391863548b77) (string handle) Turn visibility one for object identified by handle. Turn off visibility for all other others. Does not affect layers or global type controls.   
 void [SetVisibilityOn](#aee770a4d84e3d6f96b6b56e265ebd136) (IEnumerable&lt; string &gt; handles) Turn on visibility for objects identified by handles. Does not affect layers or global type controls.   
 void [SetVisibilityOn](#a60f2b29361e90eb27fe01ea491ecfe86) (string handle) Turn on visibility for one object identified by handle. Does not affect layers or global type controls.   
 void [SetVisibilityOff](#a4dc3a5b47a87ec39aef8c1954b3347e8) (IEnumerable&lt; string &gt; handles) Turn off visibility for objects identified by handles. Does not affect layers or global type controls.   
 void [SetVisibilityOff](#af200e0396118bf9f865179543504e471) (string handle) Turn off visibility for one object identified by handle. Does not affect layers or global type controls.   
 void [SetIdsOn](#a6d682bd82a4b141aa588ea780f42f9e1) (IEnumerable&lt; string &gt; handles) Turn on ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.   
 void [SetIdsOn](#a5d561d5ae4d0d1bb1fa1d60f24f4ba08) (string handle) Turn on ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.   
 void [SetIdsOff](#abc90984d77d3b0e29a94b1145a0a6066) (IEnumerable&lt; string &gt; handles) Turn off ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.   
 void [SetIdsOff](#aa8ad1c1795a70468a6685c1d001a67a8) (string handle) Turn off ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.   
 List&lt; bool &gt; [GetVisibility](#af1f244a3f99dfe479f10e661c6460f11) (IEnumerable&lt; string &gt; handles) Get list of bools for whether objects selected by handles are set to visible. Does not account for layers or global type controls.   
 bool [GetVisibility](#a5582e3778331e773cc944dce8e8d0e4f) (string handle) Get bool for single object selected by handle is set to visible. Does not account for layers or global type controls.   
 List&lt; bool &gt; [GetIdVisibility](#aa3e645a8a2cbda42926be22adc87ab2d) (IEnumerable&lt; string &gt; handles) 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.   
 bool [GetIdVisibility](#aa0eade42a8c8b8251c50fb7b4d32f7cf) (string handle) 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.   
## Member Function Documentation

<a id="a5f168273f8b1cfbebfdfad194d6534bb" name="a5f168273f8b1cfbebfdfad194d6534bb"></a>## [◆ ](#a5f168273f8b1cfbebfdfad194d6534bb)DisplayAll()

 void OpenTD.VisibilityManager.DisplayAll  ( )   inline 

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





<a id="a894a879eac5068dc6becd0f6d5f98b10" name="a894a879eac5068dc6becd0f6d5f98b10"></a>## [◆ ](#a894a879eac5068dc6becd0f6d5f98b10)DisplayOnly() \[1/2\]

 void OpenTD.VisibilityManager.DisplayOnly  ( IEnumerable&lt; string &gt; *handles*)   inline 

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

Parameters handles



<a id="a0375c1356961ba4e16d4391863548b77" name="a0375c1356961ba4e16d4391863548b77"></a>## [◆ ](#a0375c1356961ba4e16d4391863548b77)DisplayOnly() \[2/2\]

 void OpenTD.VisibilityManager.DisplayOnly  ( string *handle*)   inline 

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

Parameters handle



<a id="aa3e645a8a2cbda42926be22adc87ab2d" name="aa3e645a8a2cbda42926be22adc87ab2d"></a>## [◆ ](#aa3e645a8a2cbda42926be22adc87ab2d)GetIdVisibility() \[1/2\]

 List&lt; bool &gt; OpenTD.VisibilityManager.GetIdVisibility  ( IEnumerable&lt; string &gt; *handles*)   inline 

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.

Parameters handlesReturns



<a id="aa0eade42a8c8b8251c50fb7b4d32f7cf" name="aa0eade42a8c8b8251c50fb7b4d32f7cf"></a>## [◆ ](#aa0eade42a8c8b8251c50fb7b4d32f7cf)GetIdVisibility() \[2/2\]

 bool OpenTD.VisibilityManager.GetIdVisibility  ( string *handle*)   inline 

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.

Parameters handleReturns



<a id="af1f244a3f99dfe479f10e661c6460f11" name="af1f244a3f99dfe479f10e661c6460f11"></a>## [◆ ](#af1f244a3f99dfe479f10e661c6460f11)GetVisibility() \[1/2\]

 List&lt; bool &gt; OpenTD.VisibilityManager.GetVisibility  ( IEnumerable&lt; string &gt; *handles*)   inline 

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

Parameters handlesReturns



<a id="a5582e3778331e773cc944dce8e8d0e4f" name="a5582e3778331e773cc944dce8e8d0e4f"></a>## [◆ ](#a5582e3778331e773cc944dce8e8d0e4f)GetVisibility() \[2/2\]

 bool OpenTD.VisibilityManager.GetVisibility  ( string *handle*)   inline 

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

Parameters handleReturns



<a id="abc90984d77d3b0e29a94b1145a0a6066" name="abc90984d77d3b0e29a94b1145a0a6066"></a>## [◆ ](#abc90984d77d3b0e29a94b1145a0a6066)SetIdsOff() \[1/2\]

 void OpenTD.VisibilityManager.SetIdsOff  ( IEnumerable&lt; string &gt; *handles*)   inline 

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

Parameters handles



<a id="aa8ad1c1795a70468a6685c1d001a67a8" name="aa8ad1c1795a70468a6685c1d001a67a8"></a>## [◆ ](#aa8ad1c1795a70468a6685c1d001a67a8)SetIdsOff() \[2/2\]

 void OpenTD.VisibilityManager.SetIdsOff  ( string *handle*)   inline 

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

Parameters handle



<a id="a6d682bd82a4b141aa588ea780f42f9e1" name="a6d682bd82a4b141aa588ea780f42f9e1"></a>## [◆ ](#a6d682bd82a4b141aa588ea780f42f9e1)SetIdsOn() \[1/2\]

 void OpenTD.VisibilityManager.SetIdsOn  ( IEnumerable&lt; string &gt; *handles*)   inline 

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

Parameters handles



<a id="a5d561d5ae4d0d1bb1fa1d60f24f4ba08" name="a5d561d5ae4d0d1bb1fa1d60f24f4ba08"></a>## [◆ ](#a5d561d5ae4d0d1bb1fa1d60f24f4ba08)SetIdsOn() \[2/2\]

 void OpenTD.VisibilityManager.SetIdsOn  ( string *handle*)   inline 

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

Parameters handle



<a id="a4dc3a5b47a87ec39aef8c1954b3347e8" name="a4dc3a5b47a87ec39aef8c1954b3347e8"></a>## [◆ ](#a4dc3a5b47a87ec39aef8c1954b3347e8)SetVisibilityOff() \[1/2\]

 void OpenTD.VisibilityManager.SetVisibilityOff  ( IEnumerable&lt; string &gt; *handles*)   inline 

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

Parameters handles



<a id="af200e0396118bf9f865179543504e471" name="af200e0396118bf9f865179543504e471"></a>## [◆ ](#af200e0396118bf9f865179543504e471)SetVisibilityOff() \[2/2\]

 void OpenTD.VisibilityManager.SetVisibilityOff  ( string *handle*)   inline 

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

Parameters handle



<a id="aee770a4d84e3d6f96b6b56e265ebd136" name="aee770a4d84e3d6f96b6b56e265ebd136"></a>## [◆ ](#aee770a4d84e3d6f96b6b56e265ebd136)SetVisibilityOn() \[1/2\]

 void OpenTD.VisibilityManager.SetVisibilityOn  ( IEnumerable&lt; string &gt; *handles*)   inline 

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

Parameters handles



<a id="a60f2b29361e90eb27fe01ea491ecfe86" name="a60f2b29361e90eb27fe01ea491ecfe86"></a>## [◆ ](#a60f2b29361e90eb27fe01ea491ecfe86)SetVisibilityOn() \[2/2\]

 void OpenTD.VisibilityManager.SetVisibilityOn  ( string *handle*)   inline 

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

Parameters handle



---

The documentation for this class was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/**VisibilityManager.cs**