Click or drag to resize

IRenderContentGetContentPreferredSize Method

Get the preferred size for drawing the content.

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

Parameters

context  ViewLayoutContext
Layout context.
palette  IPaletteContent
Content palette details.
values  IContentValues
Content values.
orientation  VisualOrientation
Visual orientation of the content.
state  PaletteState
State associated with rendering.
composition  Boolean
Drawing onto a composition element.
glowing  Boolean
If composition, should glowing be drawn.

Return Value

Size
Preferred size.
See Also