Skip to content

Visibility Meta-Tag

See Also: Class Meta-Data Tags

Purpose

Used by Studio CodeSense and designers to determine how a class should be exposed.

Syntax

{ Visibility=
    Public
    | Private }

Where Public is the default. If this meta-data tag is not used for a class, the class is public.

Use

This meta-data tag can be set to Private to "hide" a class from all Studio design-time access, including the Object Properties window and CodeSense.

To indicate that a class is private, add the Visibility meta-data tag above the class declaration line.

Example

{ Visibility=Private }
Class cMyAbstractClass is a cObject
End_Class

Of Special Note

The Visibility class meta-data tag is inherited. If a superclass is flagged as private, any subclasses of that class will be flagged as private unless explicitly flagged public in that subclass.