ClassTemplateGroupsElement
Represents a hierarchy of template group elements that is associated with specified GridViewTemplate.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class TemplateGroupsElement : GridVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGridVisualElementTemplateGroupsElement
Implements:
Inherited Members
Constructors
TemplateGroupsElement(GroupPanelElement, GridViewTemplate)
Initializes a new instance of the TemplateGroupsElement class.
Declaration
public TemplateGroupsElement(GroupPanelElement groupPanelElement, GridViewTemplate template)
Parameters
groupPanelElement
An instance of GroupPanelElement.
template
An instance of GridViewTemplate.
Fields
ChildTemplateGroupsHorizontalOffsetProperty
Declaration
public static RadProperty ChildTemplateGroupsHorizontalOffsetProperty
Field Value
ItemsDistanceProperty
Declaration
public static RadProperty ItemsDistanceProperty
Field Value
LinkPositionProperty
Declaration
public static RadProperty LinkPositionProperty
Field Value
TemplateGroupsBottomDistanceProperty
Declaration
public static RadProperty TemplateGroupsBottomDistanceProperty
Field Value
Properties
ChildTemplateGroupsElements
Gets a read only collection of child elements of type TemplateGroupsElement
Declaration
public ReadOnlyCollection<TemplateGroupsElement> ChildTemplateGroupsElements { get; }
Property Value
ChildTemplateGroupsHorizontalOffset
Sets the vertical offset between two consecutive child TemplateGroupsElements
Declaration
public int ChildTemplateGroupsHorizontalOffset { get; set; }
Property Value
GroupElements
Gets a read only collection of child elements of type GroupElement
Declaration
public ReadOnlyCollection<GroupElement> GroupElements { get; }
Property Value
GroupPanelElement
Gets the group panel element.
Declaration
public GroupPanelElement GroupPanelElement { get; }
Property Value
The group panel element.
ItemsDistance
Sets the vertical and horizontal distance between two consecutive GroupElements
LinkOffset
Sets the group links offset
LinkPosition
Sets the group links position
Declaration
public virtual TemplateGroupsElement.GroupLinkPosition LinkPosition { get; set; }
Property Value
LinkWidth
Sets the separator's width between two consecutive GridFieldElements
TemplateGroupsBottomDistance
Sets the vertical and horizontal distance between two consecutive GroupElements
Declaration
public virtual int TemplateGroupsBottomDistance { get; set; }
Property Value
ViewTemplate
Gets the GridViewTemplate.
Declaration
public GridViewTemplate ViewTemplate { get; }
Property Value
The view template.
Methods
ArrangeGroupLink(GroupLinkElement, PointF, PointF)
Arranges the group link.
Declaration
protected virtual void ArrangeGroupLink(GroupLinkElement linkElement, PointF beginPoint, PointF endPoint)
Parameters
linkElement
The link element.
beginPoint
The begin point.
endPoint
The end point.
ArrangeLeftToRight(SizeF)
Arranges the left to right.
ArrangeLeftToRightGroupElements(ref PointF, ref float)
Arranges the left to right group elements.
ArrangeOverride(SizeF)
Arranges the override.
ArrangeRightToLeft(SizeF)
Arranges the right to left.
ArrangeRightToLeftGroupElements(ref PointF, ref float)
Arranges the right to left group elements.
CalcFinalRectLeftToRightBottomGroupLink(GroupElement, GroupElement, out PointF, out PointF)
Calcs the final rect left to right bottom group link.
Declaration
protected virtual void CalcFinalRectLeftToRightBottomGroupLink(GroupElement fromGroupElement, GroupElement toGroupElement, out PointF beingPoint, out PointF endPoint)
Parameters
fromGroupElement
From group element.
toGroupElement
To group element.
beingPoint
The being point.
endPoint
The end point.
CalcFinalRectRightToLeftBottomGroupLink(GroupElement, GroupElement, out PointF, out PointF)
Calcs the final rect right to left bottom group link.
Declaration
protected virtual void CalcFinalRectRightToLeftBottomGroupLink(GroupElement fromGroupElement, GroupElement toGroupElement, out PointF beingPoint, out PointF endPoint)
Parameters
fromGroupElement
From group element.
toGroupElement
To group element.
beingPoint
The being point.
endPoint
The end point.
CanDragOver(ISupportDrag)
Determines whether the specified drag object [can be drag over] this instance.
Declaration
public bool CanDragOver(ISupportDrag dragObject)
Parameters
dragObject
The drag object.
Returns
true if the specified drag object [can drag over]; otherwise, false.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
InitializeFields()
Initializes the fields.
Declaration
protected override void InitializeFields()
Overrides
MeasureGroupElements(SizeF, ref SizeF)
Measures the group elements.
MeasureOverride(SizeF)
Measures the space required by the RadElement Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
MeasureTemplateGroupElements(SizeF, ref SizeF)
Measures the template group elements.
ProcessDragDrop(Point, ISupportDrag)
Core logic when a drag-drop is performed over this element. Allows inheritors to provide their own implementations.
Declaration
protected override void ProcessDragDrop(Point dropLocation, ISupportDrag dragObject)
Parameters
dropLocation
dragObject
Overrides
ProcessDragDropColumn(object)
Declaration
protected virtual void ProcessDragDropColumn(object dataContext)
Parameters
dataContext
ProcessDragDropFieldContext(object)
Declaration
protected virtual void ProcessDragDropFieldContext(object dataContext)
Parameters
dataContext
ProcessDragOver(Point, ISupportDrag)
Determines whether the element may be treated as a drop target during drag-and-drop operation.
Declaration
protected override bool ProcessDragOver(Point currentMouseLocation, ISupportDrag dragObject)
Parameters
currentMouseLocation
dragObject
Returns
Overrides
UpdateHierarchy()
Recreates the child elements hierarchy depending on the associated GridViewTemplate.
Declaration
public void UpdateHierarchy()