MPfm: Music Player for Musicians - Developer Documentation - 0.6.0.0
RenderTextWithAlignment Method (g, rect, font, text, align, color, padding)
NamespacesMPfm.WindowsControlsPaintHelperRenderTextWithAlignment(Graphics, RectangleF, Font, String, ContentAlignment, Color, Int32)
Renders text with alignment.
Declaration Syntax
C#Visual Basic
public static void RenderTextWithAlignment(
	Graphics g,
	RectangleF rect,
	Font font,
	string text,
	ContentAlignment align,
	Color color,
	int padding
)
Public Shared Sub RenderTextWithAlignment ( _
	g As Graphics, _
	rect As RectangleF, _
	font As Font, _
	text As String, _
	align As ContentAlignment, _
	color As Color, _
	padding As Integer _
)
Parameters
g (Graphics)
Graphics object to render to
rect (RectangleF)
Rectangle representing the area where the content should be aligned
font (Font)
Font
text (String)
Text to render
align (ContentAlignment)
Alignment
color (Color)
Fore color
padding (Int32)
Padding (space between borders and text)

Assembly: MPfm.WindowsControls (Module: MPfm.WindowsControls) Version: 0.5.3.0 (0.5.3.0)