文字を変更する
var statusBar = ServiceProvider.GetService( typeof( SVsStatusbar ) ) as IVsStatusbar;
statusBar.SetText( "ピカチュウ" );
プログレスバーを表示する
var statusBar = ServiceProvider.GetService( typeof( SVsStatusbar ) ) as IVsStatusbar;
uint cookie = 0;
uint total = 100;
statusBar.Progress( ref cookie, 1, "", 0, 0 );
for ( uint i = 0; i <= total; i++ )
{
statusBar.Progress( ref cookie, 1, "進捗", i, total );
Thread.Sleep( 10 );
}
statusBar.Progress( ref cookie, 0, "", 0, 0 );
アニメーションを表示する
var statusBar = ServiceProvider.GetService( typeof( SVsStatusbar ) ) as IVsStatusbar;
object icon = ( short )Constants.SBAI_Build;
statusBar.Animation( 1, ref icon );
Thread.Sleep( 1000 );
statusBar.Animation( 0, ref icon );