Interface IElement
This class represents a layout element, i.e. a piece of content that will take up 'physical' space on a canvas or document.
public interface IElement : IPropertyContainer
- Inherited Members
Remarks
This class represents a layout element, i.e. a piece of content that will take up 'physical' space on a canvas or document. Its presence and positioning may influence the position of other IElement s on the layout surface.
Methods
CreateRendererSubTree()
Creates a renderer subtree with root in the current element.
IRenderer CreateRendererSubTree()
Returns
- IRenderer
a renderer subtree for this element
Remarks
Creates a renderer subtree with root in the current element. Compared to GetRenderer() , the renderer returned by this method should contain all the child renderers for children of the current element.
GetRenderer()
Gets a renderer for this element.
IRenderer GetRenderer()
Returns
- IRenderer
a renderer for this element
Remarks
Gets a renderer for this element. Note that this method can be called more than once. By default each element should define its own renderer, but the renderer can be overridden by SetNextRenderer(IRenderer) method call.
SetNextRenderer(IRenderer)
Overrides the IRenderer instance which will be returned by the next call to the GetRenderer().
void SetNextRenderer(IRenderer renderer)
Parameters
renderer
IRendererthe renderer instance