Click or drag to resize

RenderBaseGetContentPreferredSize Method

Get the preferred size for drawing the content.

Namespace:  Internal.ComponentFactory.Krypton.Toolkit
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2023.1.2.0 (2023.1.2.0)
Syntax
C#
public abstract Size GetContentPreferredSize(
	ViewLayoutContext context,
	IPaletteContent palette,
	IContentValues values,
	VisualOrientation orientation,
	PaletteState state,
	bool composition,
	bool glowing
)

Parameters

context
Type: Internal.ComponentFactory.Krypton.ToolkitViewLayoutContext
Layout context.
palette
Type: Internal.ComponentFactory.Krypton.ToolkitIPaletteContent
Content palette details.
values
Type: Internal.ComponentFactory.Krypton.ToolkitIContentValues
Content values.
orientation
Type: Internal.ComponentFactory.Krypton.ToolkitVisualOrientation
Visual orientation of the content.
state
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteState
State associated with rendering.
composition
Type: SystemBoolean
Drawing onto a composition element.
glowing
Type: SystemBoolean
If composition, should glowing be drawn.

Return Value

Type: Size
Preferred size.

Implements

IRenderContentGetContentPreferredSize(ViewLayoutContext, IPaletteContent, IContentValues, VisualOrientation, PaletteState, Boolean, Boolean)
See Also