Set an origin object's visible status
VB: Property Get/Let Show As Integer
C++: int Show
C#: int Show
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
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 }
8.0SR2