Table of Contents

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
object
AngleEditor
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

value double

The current value.

range FloatRangeAttribute

The range of valid values the user can select.

editorService IWindowsFormsEditorService

The 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

value double

The current value.

editorService IWindowsFormsEditorService

The 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

context ITypeDescriptorContext

An 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

e PaintValueEventArgs

A PaintValueEventArgs that indicates what to paint and where to paint it.

See Also