DockingGuideHitTest
Contains the hit-test information of a DragDropService.
Definition
Namespace:Telerik.WinControls.UI.Docking
Assembly:Telerik.WinControls.RadDock.dll
Syntax:
public struct DockingGuideHitTest
Constructors
Initializes new instances of the DockingGuideHitTest class, using the provided parameters.
public DockingGuideHitTest(DockPosition? dockPos, DockingGuidesPosition? guidePos, bool? dockAsDocument)
The docking direction under the pointer, or null when no direction is hit.
guidePosDockingGuidesPosition?The guide position under the pointer, or null when no guide is hit.
dockAsDocumentbool?Whether the hit position selects a document docking target; null means no document/tool distinction was hit.
Initializes new instances of the DockingGuideHitTest class, using the provided parameters.
public DockingGuideHitTest(DockPosition? dockPos, DockingGuidesPosition? guidePos)
The docking direction under the pointer, or null when no direction is hit.
guidePosDockingGuidesPosition?The guide position under the pointer, or null when no guide is hit.
Fields
Gets or sets whether the hit selects a document docking target; null is treated as false by the drag-drop service.
public bool? DockAsDocument
A nullable member that defines the current DockPosition of the hit-test operation.
public DockPosition? DockPosition
The default empty instance.
public static readonly DockingGuideHitTest Empty
A nullable member that defines the current DockingGuidesPosition of the hit-test operation.
public DockingGuidesPosition? GuidePosition
Methods
Determines whether the specified object is a hit-test value with the same docking direction, guide position, and document-target flag.
public override bool Equals(object obj)
The object to compare with this value.
Returns:true if obj is an equal DockingGuideHitTest; otherwise, false.
Overrides:
Combines the hash codes of the docking direction, guide position, and document-target flag.
Determines whether this instance has no docking direction or guide position.
public bool IsEmpty()
true when both DockPosition and GuidePosition are null.
The DockAsDocument flag does not affect this check.
Operators
Determines whether the specified two DockingGuideHitTest instances are not equal.
public static bool operator !=(DockingGuideHitTest ht1, DockingGuideHitTest ht2)
The first hit-test value to compare.
ht2DockingGuideHitTestThe second hit-test value to compare.
Returns:Determines whether the specified two DockingGuideHitTest instances are equal.
public static bool operator ==(DockingGuideHitTest ht1, DockingGuideHitTest ht2)
The first hit-test value to compare.
ht2DockingGuideHitTestThe second hit-test value to compare.
Returns:true when all three hit-test values are equal; otherwise, false.