GroupAttributes
Attributes<1>Constructors
GroupAttributes
#Properties
AggregateBounds
Gets the aggregate bounds of this object. This will include the bounds of all objects attached in some way to this object.
public RectangleF AggregateBounds { get; }
Implements: AggregateBounds
Bounds
Gets the total outer bounds of the attributes. The attributes are assumed not to exist beyond this limit. Note that the bounds are updated during calls to Layout(), so may be out-of-date or even unset when called outside of the usual process.
public RectangleF Bounds { get; protected set; }
Implements: Bounds
DraggingBounds
#Gets the interior bounds of the group. This is the portion of the Bounds within which a mouse-down ought to trigger a window selection rather than a drag. This property is assigned during drawing.
public RectangleF DraggingBounds { get; }
Owner
public T Owner { get; }
Pivot
Gets or sets the pivot point for these attributes. The pivot is the main point around which the attribute geometry is positioned during layout.
public PointF Pivot { get; set; }
Implements: Pivot
Snappable
Gets whether these attributes can be used to align other objects on the canvas. Return false specifically when your object shape is not rectangular.
Implements: Snappable
Stack
The horizontal layout stack along the apex row. Derived classes typically (re)assign this during Attributes<T>.Layout(Shape) and reference sub-regions via class-local index constants. The default Attributes<T>.PivotMoved(PointF, PointF) translates the stack along with Attributes<T>.Bounds.
Methods
DefaultTooltipContent
Create the tooltip fields which are associated with this object by default.
protected bool DefaultTooltipContent()
PointF
point,
Point for tooltip.
out IIcon
icon,
Icon.
out string
caption,
Caption text.
out string
message,
Message text.
out object
details,
out bool
warnings,
Boolean flag indicating the existence of warnings.
out bool
errors
Boolean flag indicating the existence of errors.
Returns: True if a tooltip ought to be shown for this object at the given location.
Draw
Internal drawing method. Consider overriding this one instead of Attributes<T>.Draw(Context, Skin).
Implements: CursorAt
HandleDoubleClick
Handle a double click operation on these attributes. Since this is such a common operation it is provided by the base interface, rather than requiring an IResponseAttribues implementation.
Implements: HandleDoubleClick
HideDraggingBorder
#Hide the dragging border.
Returns: True if an animation was started to hide the border.
Intersects
Test whether a given rectangle intersects the shape of these attributes.
Returns: True if rectangle intersects these attributes.
Implements: Intersects
InvalidateDisplay
Signals that the attribute's visual appearance has changed without affecting layout. Fires the owner's DocumentObject.OnDisplayChanged(), which propagates through the document to the canvas redraw subscription.
public virtual void InvalidateDisplay()
Implements: InvalidateDisplay
IsCoincident
Test whether a given point is considered to be on the interior of these attributes.
Returns: True if point is on the object.
Implements: IsCoincident
IsContained
Test whether the shape of these attributes is fully contained within a given rectangle.
Returns: True if rectangle contains these attributes.
Implements: IsContained
Layout
#Layout overload specific to groups. The additional argument allows the layout to cache the bounds calculation for this draw call.
public void Layout()
Shape
shape,
Layout shape hint.
cacheKey
Cache key, this is the tick count associated with the start of the draw call.
Move
Move these attributes a certain amount in X and Y.
Implements: Move
PivotMoved
Override this method if your attributes need to handle pivot motion. The default implementation translates Attributes<T>.Bounds and Attributes<T>.Stack by the pivot delta. Overrides should typically chain to this base implementation.
protected virtual void PivotMoved()
PointF
oldPivot,
PointF
newPivot
ShowDraggingBorder
#Show the dragging border.
Returns: True if an animation was started to show the border.
TooltipContentDetails
#TooltipDetails
Override this method to return custom details for a tooltip.
Returns: One of the acceptable types of data for details. For example an array of LazyStrings or a Action<Context, RectangleF>.