ProgressBar.Width MethodGets or sets the width of the ProgressBar object.object.Width ([value]) Arguments
Return ValueThe ProgressBar.Width property returns the current number of pixels wide to draw the ProgressBar.RemarksWhen attemting to set the property value, it is good to check the return value to ensure that the value was set.The following example illustrates the use of the Width property. var dash = ActiveDocument.Sections["Dashboard"]; dash.pb0001 = new wsdot_ProgressBar(dash); with (dash.pb0001) { Left(300); Top(200); Height(32); var iWidth = Width(160); if (iWidth == 160) { // success } Value(0); MaxValue(100); Show(); for (var i = 1; i <= dash.pb0001.MaxValue() / 2; i++) { var a = (new Date()).valueOf(); while ((new Date()).valueOf() - a < 10) { DoEvents(); DoEvents(); } dash.pb0001.Value(i * 2); } } Applies To:ProgressBar ObjectRequirementsThe WSDOT Custom Scripts from the script repository must be loaded into the document. |