Struct Graphics.DrawElementParams
Contains draw element parameters.
public struct Graphics.DrawElementParams
Constructors
- DrawElementParams()
Initializes a new instance of the Graphics.DrawElementParams struct.
- DrawElementParams(Func<Graphics, SizeD>, Action<Graphics, RectD>, HVAlignment)
Initializes a new instance of the Graphics.DrawElementParams struct with the specified parameters.
Fields
- Alignment
Gets or sets element alignment.
- Default
Gets default element.
- Draw
Gets or sets element draw function.
- GetSize
Gets or sets element size function.
- IsImage
Gets or sets whether element is image.
- MinWidth
Gets or sets minimal width of the element.
- Name
Gets or sets the name associated with the object.
- Tag
Gets or sets an object that provides additional data or metadata about the current instance.
Methods
- CreateImageElement(ref DrawLabelParams, Image?)
Creates an image element based on the specified drawing parameters.
- CreateImageElement(Image?)
Creates a new image element for rendering using the specified image.
- CreateImageElement(AbstractControl?, SvgImage, int?, Color?)
Creates a Graphics.DrawElementParams object for rendering an image element based on the specified SVG image, size, and optional color.
- CreateSpacerElement(SizeD, HVAlignment?)
Creates a spacer element with the specified size and alignment.
- CreateTextElement(ref DrawLabelParams, string?)
Creates a text element with specified parameters for rendering text and associated styles.
- GetRealSize(Graphics)
Calculates the actual size of the object, ensuring it meets the minimum width requirement.