Class AngleEditor
- Namespace
- OmegaEngine.Foundation.Design
- Assembly
- OmegaEngine.Foundation.dll
An editor that can be associated with float properties representing angles between 0 and 360 degrees. Uses AngleControl.
public class AngleEditor : FloatEditor
- Inheritance
-
objectAngleEditor
- Inherited Members
Methods
EditValue(double, FloatRangeAttribute, IWindowsFormsEditorService)
Displays the UI to edit the float value.
protected override double EditValue(double value, FloatRangeAttribute range, IWindowsFormsEditorService editorService)
Parameters
valuedoubleThe current value.
rangeFloatRangeAttributeThe range of valid values the user can select.
editorServiceIWindowsFormsEditorServiceThe editor service used to display the dropdown control.
Returns
- double
The value set by the user.
EditValue(double, IWindowsFormsEditorService)
Displays the UI to edit the float value.
protected override double EditValue(double value, IWindowsFormsEditorService editorService)
Parameters
valuedoubleThe current value.
editorServiceIWindowsFormsEditorServiceThe editor service used to display the dropdown control.
Returns
- double
The value set by the user.
GetPaintValueSupported(ITypeDescriptorContext?)
Indicates whether the specified context supports painting a representation of an object's value within the specified context.
public override bool GetPaintValueSupported(ITypeDescriptorContext? context)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that can be used to gain additional context information.
Returns
- bool
true if PaintValue(object, Graphics, Rectangle) is implemented; otherwise, false.
PaintValue(PaintValueEventArgs)
Paints a representation of the value of an object using the specified PaintValueEventArgs.
public override void PaintValue(PaintValueEventArgs e)
Parameters
ePaintValueEventArgsA PaintValueEventArgs that indicates what to paint and where to paint it.