ClassBackgroundGridBase
Represents a visual grid of lines usually used as background surface.
Definition
Namespace:Telerik.WinControls.UI.Diagrams.Primitives
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public abstract class BackgroundGridBase : Canvas, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementPanelCanvasBackgroundGridBase
Derived Classes:
Implements:
Inherited Members
Constructors
BackgroundGridBase()
Declaration
protected BackgroundGridBase()
Properties
CellSize
Gets the cell size.
IsDynamic
Gets a value indicating whether the grid will be synchronized with the diagram viewport changes (panning and zooming).
LineStroke
Gets line stroke.
LineStrokeDashArray
Gets line stroke dash array.
Declaration
public abstract DoubleCollection LineStrokeDashArray { get; set; }
Property Value
LineStrokeThickness
Gets line stroke thickness.
Declaration
public abstract double LineStrokeThickness { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
finalSize
The size that is available for element.
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
OnNotifyPropertyChanged(string)
Raises the PropertyChanged event.
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property.
Overrides
PaintElement(IGraphics, float, SizeF)
Paints the element's background and calls the base implementation to paint child elements.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics object used for painting.
angle
The rotation angle to apply during painting.
scale
The scale factor to apply during painting.
Overrides
Refresh(bool)
Redraws the lines.
Declaration
protected void Refresh(bool forceRefresh = false)
Parameters
forceRefresh