Click or drag to resize

AccurateTextDrawString Method (Graphics, Brush, Rectangle, RightToLeft, VisualOrientation, Boolean, Boolean, PaletteState, AccurateTextMemento)

Pixel accurate drawing of the requested text memento information.

Namespace:  Internal.ComponentFactory.Krypton.Toolkit
Assembly:  NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static bool DrawString(
	Graphics g,
	Brush brush,
	Rectangle rect,
	RightToLeft rtl,
	VisualOrientation orientation,
	bool composition,
	bool glowing,
	PaletteState state,
	AccurateTextMemento memento
)

Parameters

g
Type: System.DrawingGraphics
Graphics object used for drawing.
brush
Type: System.DrawingBrush
Brush for drawing text with.
rect
Type: System.DrawingRectangle
Rectangle to draw text inside.
rtl
Type: System.Windows.FormsRightToLeft
Right to left setting for control.
orientation
Type: Internal.ComponentFactory.Krypton.ToolkitVisualOrientation
Orientation for drawing text.
composition
Type: SystemBoolean
Should draw on a composition element.
glowing
Type: SystemBoolean
When on composition draw with glowing.
state
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteState
State of the source element.
memento
Type: Internal.ComponentFactory.Krypton.ToolkitAccurateTextMemento
Memento containing text context.

Return Value

Type: Boolean
True if draw succeeded; False is draw produced an error.
See Also