Get current value of the range.

Namespace:  QAliber.Engine.Controls.UIA
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public double Value { get; }
Visual Basic (Declaration)
Public ReadOnly Property Value As Double
Visual C++
public:
virtual property double Value {
	double get () sealed;
}

Return Value

double representation of the current poisition relative to the minimum value

Examples

CopyC#
System.Diagnostics.Process recoderProc = System.Diagnostics.Process.Start("sndrec32");
  UIAWindow sndRecWin = Desktop.UIA[@"Sound - Sound Recorder", @"SoundRec", @"UIAWindow"] as UIAWindow;
  UIAButton recordButton = sndRecWin[@"", @"Button", @"209"] as UIAButton;
  UIRange recordRange = sndRecWin[@"", @"msctls_trackbar32", @"204"] as UIRange;
  MessageBox.Show("Before record: \n Min volume: " + recordRange.MinimumValue  + ", Current volume: " + recordRange.Value + " ,Max volume: " + recordRange.MaximumValue);
  recordButton.Click();
  //wait for 4 while recording
  System.Threading.Thread.Sleep(4000);
  MessageBox.Show("After record: \n Min volume: " + recordRange.MinimumValue + ", Current volume: " + recordRange.Value + " ,Max volume: " + recordRange.MaximumValue);
  recoderProc.Kill();

See Also