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
-
AngleEditor
- Inherited Members
- Extension Methods
Methods
EditValue(float, FloatRangeAttribute, IWindowsFormsEditorService)
Displays the UI to edit the float value.
protected override float EditValue(float value, FloatRangeAttribute range, IWindowsFormsEditorService editorService)
Parameters
valuefloatThe current value.
rangeFloatRangeAttributeThe range of valid values the user can select.
editorServiceIWindowsFormsEditorServiceThe editor service used to display the dropdown control.
Returns
- float
The value set by the user.
EditValue(float, IWindowsFormsEditorService)
Displays the UI to edit the float value.
protected override float EditValue(float value, IWindowsFormsEditorService editorService)
Parameters
valuefloatThe current value.
editorServiceIWindowsFormsEditorServiceThe editor service used to display the dropdown control.
Returns
- float
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.