View.State

説明

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

C#構文

// get accessor

siViewState rtn = View.State;

// set accessor

View.State = siViewState;

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;