C# Класс ComponentFactory.Krypton.Toolkit.AccurateText

Provide accurate text measuring and drawing capability.
Наследование: GlobalId
Показать файл Открыть проект

Открытые методы

Метод Описание
DrawCompositionGlowingText ( Graphics g, string text, Font font, Rectangle bounds, PaletteState state, Color color, bool copyBackground ) : void

Draw text with a glowing background, for use on a composition element.

DrawString ( Graphics g, Brush brush, Rectangle rect, RightToLeft rtl, VisualOrientation orientation, bool composition, PaletteState state, AccurateTextMemento memento ) : bool

Pixel accurate drawing of the requested text memento information.

MeasureString ( Graphics g, RightToLeft rtl, string text, Font font, PaletteTextTrim trim, PaletteRelativeAlign align, PaletteTextHotkeyPrefix prefix, TextRenderingHint hint, bool composition, bool disposeFont ) : AccurateTextMemento

Pixel accurate measure of the specified string when drawn with the specified Font object.

Описание методов

DrawCompositionGlowingText() публичный статический Метод

Draw text with a glowing background, for use on a composition element.
public static DrawCompositionGlowingText ( Graphics g, string text, Font font, Rectangle bounds, PaletteState state, Color color, bool copyBackground ) : void
g System.Drawing.Graphics Graphics reference.
text string Text to be drawn.
font System.Drawing.Font Font to use for text.
bounds System.Drawing.Rectangle Bounding area for the text.
state PaletteState State of the source element.
color Color Color of the text.
copyBackground bool Should existing background be copied into the bitmap.
Результат void

DrawString() публичный статический Метод

Pixel accurate drawing of the requested text memento information.
public static DrawString ( Graphics g, Brush brush, Rectangle rect, RightToLeft rtl, VisualOrientation orientation, bool composition, PaletteState state, AccurateTextMemento memento ) : bool
g System.Drawing.Graphics Graphics object used for drawing.
brush System.Drawing.Brush Brush for drawing text with.
rect System.Drawing.Rectangle Rectangle to draw text inside.
rtl RightToLeft Right to left setting for control.
orientation VisualOrientation Orientation for drawing text.
composition bool Should draw on a composition element.
state PaletteState State of the source element.
memento AccurateTextMemento Memento containing text context.
Результат bool

MeasureString() публичный статический Метод

Pixel accurate measure of the specified string when drawn with the specified Font object.
public static MeasureString ( Graphics g, RightToLeft rtl, string text, Font font, PaletteTextTrim trim, PaletteRelativeAlign align, PaletteTextHotkeyPrefix prefix, TextRenderingHint hint, bool composition, bool disposeFont ) : AccurateTextMemento
g System.Drawing.Graphics Graphics instance used to measure text.
rtl RightToLeft Right to left setting for control.
text string String to measure.
font System.Drawing.Font Font object that defines the text format of the string.
trim PaletteTextTrim How to trim excess text.
align PaletteRelativeAlign How to align multine text.
prefix PaletteTextHotkeyPrefix How to process prefix characters.
hint TextRenderingHint Rendering hint.
composition bool Should draw on a composition element.
disposeFont bool Dispose of font when finished with it.
Результат AccurateTextMemento