ProgressBar.Text MethodReads or updates the value of the text for the ProgressBar object.object.Text ([value]) Arguments
Return ValueThe ProgressBar.Text property returns a string containing the value of the text for the ProgressBar.RemarksFor the text to be displayed, the Label property must be set to true.The following example illustrates the use of the Text property. var dash = ActiveDocument.Sections["Dashboard"]; dash.pb0001 = new wsdot_ProgressBar(dash); with (dash.pb0001) { Left(300); Top(200); Height(32); Width(160); var iValue = Value(0); if (iValue == 0) { // success } 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. |