2.34.14 Show


Description

Set an origin object's visible status

Syntax

VB: Property Get/Let Show As Integer
C++: int Show
C#: int Show

Remark

Examples

VB

    Sub SetShow()
        Dim app As Origin.IOApplication
        Dim obj As Origin.OriginObject

        app = New Origin.ApplicationSI
        obj = app.ActivePage
        obj.Show = 0 'hide active page, use no zero value to make visible
    End Sub

C#

static void Main(string[] args)
{
    Origin.IOApplication pOrigin;
    pOrigin = new Origin.ApplicationSIClass();

    Origin.Layer ly;
    ly = pOrigin.ActivePage.Layers[0]; //get first layer of active page
    if ( ly != null )
        ly.Show = 0; //hide it, use ly.Show = 1 to make it visible

}

Version Information

8.0SR2

See Also