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

value float

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

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

value float

The current value.

editorService IWindowsFormsEditorService

The 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

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