Properties

AllowPan

#
Gets whether this control supports mouse panning.
bool AllowPan { get; }

AllowZoom

#
Gets whether this control supports mouse zooming.
bool AllowZoom { get; }

Border

#
Gets or sets the border drawn around this control.
ControlBorder Border { get; set; }

ContentBounds

#
Gets or sets the bounding box of the content. Use an empty rectangle to indicate boundless content.
RectangleF ContentBounds { get; set; }

ContentToControl

#
Gets the transformation matrix from content coordinates to control coordinates.
IMatrix ContentToControl { get; }

ControlToContent

#
Gets the transformation matrix from control coordinates to content coordinates.
IMatrix ControlToContent { get; }

DrawContentBoundary

#
Gets or sets whether the content boundary ought to be drawn when visible.
bool DrawContentBoundary { get; set; }

DrawEndTime

#
Gets the end of the most recent drawing pass. If a drawing is currently in progress, DateTime.Max is returned as it is not yet known when the pass will end.
DateTime DrawEndTime { get; }

DrawScrollbars

#
Gets whether this control should display scrollbars when needed. Scrollbars will only be displayed when the content exceeds the inner bounds.
bool DrawScrollbars { get; set; }

DrawStartTime

#
Gets the start of the most recent (and possibly current) drawing pass.
DateTime DrawStartTime { get; }

FloatingButtons

#
Gets the floating button collection associated with this control.
FloatingButtonCollection FloatingButtons { get; }

FocusObject

#
Gets the object (if any) which currently has focus within the control.
IResponsive FocusObject { get; }

InnerBounds

#
Gets the area in control coordinates for the content of the control. This area does not include the control border, nor the scrollbars.
RectangleF InnerBounds { get; }

InnerScreenBounds

#
Gets the inner bounds of this control in screen coordinates.
RectangleF InnerScreenBounds { get; }

IntegerOrigin

#
Gets or sets whether this control only allows integer accuracy coordinates for the origin point.
bool IntegerOrigin { get; set; }

IsDragSource

#
Gets or sets whether this control is potentially a source for drag+drop operations.
bool IsDragSource { get; set; }

IsDropTarget

#
Gets or sets whether this control is potentially a target for drag+drop operations.
bool IsDropTarget { get; set; }

MaximumZoom

#
Gets or sets the maximum allowed zoom.
float MaximumZoom { get; set; }

MinimumZoom

#
Gets or sets the minimum allowed zoom.
float MinimumZoom { get; set; }

OuterBounds

#
Gets the bounds of this control in container coordinates.
RectangleF OuterBounds { get; }

ParentControl

#
Gets or sets the parent control.
IFlexControl ParentControl { get; set; }

Projection

#
Gets or sets the projection for this control.
Projection Projection { get; set; }

ResizeBehaviour

#
Gets or sets the projection behaviour of the content during control resizing events.
ContentResizeBehaviour ResizeBehaviour { get; set; }

ResponsivesForwards

#
Enumerate over all registered responsive objects.
IEnumerable<IResponsive> ResponsivesForwards { get; }

ScreenBounds

#
Gets the bounds of this control in screen coordinates.
RectangleF ScreenBounds { get; }

VisibleFrame

#
Gets the rectangle in content coordinates which represents the visible portion. This basically means the InnerBounds mapped into content coordinates.
RectangleF VisibleFrame { get; }

ZoomFeedbackLocation

#
Gets or sets the location for zoom change feedback.
FeedbackLocation ZoomFeedbackLocation { get; set; }

Methods

Animate<T>

#
Evaluate an animator. This method automatically schedules redraw events if those are needed for smooth animations.
T Animate<T>(
animated
Animator to evaluate.
)
Animated value.

AnimatedZoomFactor

#
Gets the normalised factor (0.0, 1.0) which indicates to what extend the display is in the given state.
float AnimatedZoomFactor(
threshold
Threshold.
)
Normalised value.

BeginWindowSelect

#
Start a window selection process. This method is typically called from within a MouseDown handler.
void BeginWindowSelect()

ComputeWrappingBounds

#
Determine the implied wrapping bounds given the control and the screen containing the location. The wrapping bounds are either the bounds of the screen containing the location, or the intersection of the screen containing the location and the bounds of the control if this intersection is not empty.
RectangleF ComputeWrappingBounds(
PointF
location
Hint location in control coordinates.
)
Wrapping bounds in control coordinates.

DrawWindowSelectionEdge

#
If a window selection is currently in progress, draw the fill of that window selection fence. By calling this method you override the default window selection drawing pipeline, which allows you to have finer control over the layering of the window rectangle background and foreground.
void DrawWindowSelectionEdge()

DrawWindowSelectionEdge

#
If a window selection is currently in progress, draw the fill of that window selection fence. By calling this method you override the default window selection drawing pipeline, which allows you to have finer control over the layering of the window rectangle background and foreground.
void DrawWindowSelectionEdge(
Pen
edge
Edge edge to use.
)

DrawWindowSelectionFill

#
If a window selection is currently in progress, draw the fill of that window selection fence. By calling this method you override the default window selection drawing pipeline, which allows you to have finer control over the layering of the window rectangle background and foreground.
void DrawWindowSelectionFill()

DrawWindowSelectionFill

#
If a window selection is currently in progress, draw the fill of that window selection fence. By calling this method you override the default window selection drawing pipeline, which allows you to have finer control over the layering of the window rectangle background and foreground.
void DrawWindowSelectionFill(
Brush
fill
Fill brush to use.
)

EndWindowSelect

#
If, for any reason, you wish to terminate a window selection process prematuraly, call this method. A window selection process will automatically end on the next mouseup.
void EndWindowSelect()

Map

#
Map a point from one coordinate system to another.
PointF Map(
PointF
point,
Point to map.
CoordinateSystem
from,
Coordinate system in which the point is currently defined.
CoordinateSystem
to
Target coordinate system.
)
Mapped point.

Map

#
Map a rectangle from one coordinate system to another.
RectangleF Map(
RectangleF
rectangle,
Rectangle to map.
CoordinateSystem
from,
Coordinate system in which the rectangle is currently defined.
CoordinateSystem
to
Target coordinate system.
)
Mapped rectangle.

RegisterIResponsive

#
Add a responsive object to this control. Responsive objects which have been properly registered will automatically have their response methods invoked in case of mouse/keybaord events on the control. The object will not be drawn though, that is the responsibility of the owner.
void RegisterIResponsive(
responsive
Responsive to add.
)

ScheduleRedraw

#
Schedule a redraw in the near future. Redraw will happen as quickly as possible, though the message queue will be emptied first.
void ScheduleRedraw()

ScheduleRedraw

#
Schedule a redraw at a roughly defined delay.
void ScheduleRedraw(
delay
Time until redraw after the current drawing operation completes.
)

UnregisterIResponsive

#
Remove a responsive object from this control.
void UnregisterIResponsive(
responsive
Responsive object to remove.
)

Events

Draw

#
This event is raised whenever the control paints itself.

PopulateContextMenu

#
Raised whenever the context menu ought to be populated.
event EventHandler<PopulateContextMenuEventArgs> PopulateContextMenu

ProjectionChanged

#
Raised whenever the projection of a control changes.
event EventHandler<ProjectionChangedEventArgs> ProjectionChanged

WindowSelection

#
Raised whenever a window selection completes.
event EventHandler<WindowSelectionEventArgs> WindowSelection