View.State

説明

ビューの状態を示すsiViewState列挙型から値の 1 つを設定したり、戻したりします。ビューの状態は相互排他的です。

JScript の例

/*
        This example demonstrates how to set view states
*/
var layout = Desktop.ActiveLayout;
var v1 = layout.CreateView( "Explorer", "First" );
var v2 = layout.CreateView( "Explorer", "Second" );
var v3 = layout.CreateView( "Explorer", "Third" );
v1.State = siClosed;                    // destroys the view
v2.State = siMinimized;         // hides the view but doesn't destroy it
v3.State = siNormal;