anchor.diff:  } catch (ValueOutOfBoundsException e) {
   }
   ----
  -
  -Alternatively, you can use the regular [methodname]#setValue(Object)#, which
  -does not do bounds checking.
   
   <<figure.components.slider.example1>> shows both vertical (from the code
   examples) and horizontal sliders that control the size of a box. The slider
  
positive.code: 
  __resolution__:: The number of digits after the decimal point. The default is 0.
  
  __orientation__:: The orientation can be either horizontal ([parameter]#SliderOrientation.HORIZONTAL#) or vertical ([parameter]#SliderOrientation.VERTICAL#). The default is horizontal.
  
  As the [classname]#Slider# is a field component, you can handle value changes
  with a [classname]#ValueChangeListener#. The value of the [classname]#Slider#
  
negative.code: vertvalue.setSizeUndefined();
  
  // Handle changes in slider value.
  vertslider.addValueChangeListener(event -> {
      float value = event.getValue().floatValue();
      box.setHeight(value, Unit.PERCENTAGE);
      vertvalue.setValue(String.valueOf(value));
  });
  ----
  
  You can set the value with the [methodname]#setValue()# method defined in
  [classname]#Slider# that takes the value as a [classname]#Double#. If the value
  is outside the configured bounds, the setter throws a [classname]#ValueOutOfBoundsException#.
  
  [source, java]
  ----
  