RenderBaseGetContentPreferredSize Method |
Get the preferred size for drawing the content.
Namespace:
Internal.ComponentFactory.Krypton.Toolkit
Assembly:
NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax 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:
SizePreferred size.
Implements
IRenderContentGetContentPreferredSize(ViewLayoutContext, IPaletteContent, IContentValues, VisualOrientation, PaletteState, Boolean, Boolean)See Also