mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-05 07:46:15 +02:00
598 lines
31 KiB
HTML
598 lines
31 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if IE]><![endif]-->
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>Class GraphicsExtentions
|
|
</title>
|
|
<meta name="viewport" content="width=device-width">
|
|
<meta name="title" content="Class GraphicsExtentions
|
|
">
|
|
<meta name="generator" content="docfx 2.58.9.0">
|
|
|
|
<link rel="shortcut icon" href="../favicon.ico">
|
|
<link rel="stylesheet" href="../styles/docfx.vendor.css">
|
|
<link rel="stylesheet" href="../styles/docfx.css">
|
|
<link rel="stylesheet" href="../styles/main.css">
|
|
<meta property="docfx:navrel" content="../toc.html">
|
|
<meta property="docfx:tocrel" content="toc.html">
|
|
|
|
|
|
|
|
</head>
|
|
<body data-spy="scroll" data-target="#affix" data-offset="120">
|
|
<div id="wrapper">
|
|
<header>
|
|
|
|
<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="../index.html">
|
|
<img id="logo" class="svg" src="../logo.svg" alt="">
|
|
</a>
|
|
</div>
|
|
<div class="collapse navbar-collapse" id="navbar">
|
|
<form class="navbar-form navbar-right" role="search" id="search">
|
|
<div class="form-group">
|
|
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="subnav navbar navbar-default">
|
|
<div class="container hide-when-search" id="breadcrumb">
|
|
<ul class="breadcrumb">
|
|
<li></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div role="main" class="container body-content hide-when-search">
|
|
|
|
<div class="sidenav hide-when-search">
|
|
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
|
|
<div class="sidetoggle collapse" id="sidetoggle">
|
|
<div id="sidetoc"></div>
|
|
</div>
|
|
</div>
|
|
<div class="article row grid-right">
|
|
<div class="col-md-10">
|
|
<article class="content wrap" id="_content" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions">
|
|
|
|
|
|
<h1 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions" class="text-break">Class GraphicsExtentions
|
|
</h1>
|
|
<div class="markdown level0 summary"><p>Extensions for the <span class="xref">System.Drawing.Graphics</span> class.</p>
|
|
</div>
|
|
<div class="markdown level0 conceptual"></div>
|
|
<div class="inheritance">
|
|
<h5>Inheritance</h5>
|
|
<div class="level0"><span class="xref">System.Object</span></div>
|
|
<div class="level1"><span class="xref">GraphicsExtentions</span></div>
|
|
</div>
|
|
<div class="inheritedMembers">
|
|
<h5>Inherited Members</h5>
|
|
<div>
|
|
<span class="xref">System.Object.Equals(System.Object)</span>
|
|
</div>
|
|
<div>
|
|
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
|
|
</div>
|
|
<div>
|
|
<span class="xref">System.Object.GetHashCode()</span>
|
|
</div>
|
|
<div>
|
|
<span class="xref">System.Object.GetType()</span>
|
|
</div>
|
|
<div>
|
|
<span class="xref">System.Object.MemberwiseClone()</span>
|
|
</div>
|
|
<div>
|
|
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
|
|
</div>
|
|
<div>
|
|
<span class="xref">System.Object.ToString()</span>
|
|
</div>
|
|
</div>
|
|
<h6><strong>Namespace</strong>: <a class="xref" href="DesktopMagicPluginAPI.Drawing.html">DesktopMagicPluginAPI.Drawing</a></h6>
|
|
<h6><strong>Assembly</strong>: DesktopMagicPluginAPI.dll</h6>
|
|
<h5 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_syntax">Syntax</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static class GraphicsExtentions</code></pre>
|
|
</div>
|
|
<h3 id="methods">Methods
|
|
</h3>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/new/develop/apiSpec/new?filename=DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringFixedWidth_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Drawing_PointF_System_Single_.md&value=---%0Auid%3A%20DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringFixedWidth(System.Drawing.Graphics%2CSystem.String%2CSystem.Drawing.Font%2CSystem.Drawing.Brush%2CSystem.Drawing.PointF%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/blob/develop/src/DesktopMagicPluginAPI/Drawing/GraphicsExtentions.cs/#L84">View Source</a>
|
|
</span>
|
|
<a id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringFixedWidth_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringFixedWidth*"></a>
|
|
<h4 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringFixedWidth_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Drawing_PointF_System_Single_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringFixedWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF,System.Single)">DrawStringFixedWidth(Graphics, String, Font, Brush, PointF, Single)</h4>
|
|
<div class="markdown level1 summary"><p><inheritdoc cref="M:System.Drawing.Graphics.DrawString(System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF)"></inheritdoc></p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void DrawStringFixedWidth(this Graphics graphics, string s, Font font, Brush brush, PointF point, float width)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Graphics</span></td>
|
|
<td><span class="parametername">graphics</span></td>
|
|
<td><p>Graphics object.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">s</span></td>
|
|
<td><p>String to draw.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Font</span></td>
|
|
<td><span class="parametername">font</span></td>
|
|
<td><p><span class="xref">System.Drawing.Font</span> that defines the text format of the string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Brush</span></td>
|
|
<td><span class="parametername">brush</span></td>
|
|
<td><p><span class="xref">System.Drawing.Brush</span> that determines the color and texture of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.PointF</span></td>
|
|
<td><span class="parametername">point</span></td>
|
|
<td><p><span class="xref">System.Drawing.PointF</span> structure that specifies the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">width</span></td>
|
|
<td><p>The specified width.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/new/develop/apiSpec/new?filename=DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringFixedWidth_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Single_System_Single_System_Single_.md&value=---%0Auid%3A%20DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringFixedWidth(System.Drawing.Graphics%2CSystem.String%2CSystem.Drawing.Font%2CSystem.Drawing.Brush%2CSystem.Single%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/blob/develop/src/DesktopMagicPluginAPI/Drawing/GraphicsExtentions.cs/#L65">View Source</a>
|
|
</span>
|
|
<a id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringFixedWidth_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringFixedWidth*"></a>
|
|
<h4 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringFixedWidth_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Single_System_Single_System_Single_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringFixedWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single,System.Single)">DrawStringFixedWidth(Graphics, String, Font, Brush, Single, Single, Single)</h4>
|
|
<div class="markdown level1 summary"><p><inheritdoc cref="M:System.Drawing.Graphics.DrawString(System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single)"></inheritdoc></p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void DrawStringFixedWidth(this Graphics graphics, string s, Font font, Brush brush, float x, float y, float width)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Graphics</span></td>
|
|
<td><span class="parametername">graphics</span></td>
|
|
<td><p>Graphics object.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">s</span></td>
|
|
<td><p>String to draw.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Font</span></td>
|
|
<td><span class="parametername">font</span></td>
|
|
<td><p><span class="xref">System.Drawing.Font</span> that defines the text format of the string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Brush</span></td>
|
|
<td><span class="parametername">brush</span></td>
|
|
<td><p><span class="xref">System.Drawing.Brush</span> that determines the color and texture of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">x</span></td>
|
|
<td><p>The x-coordinate of the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">y</span></td>
|
|
<td><p>The y-coordinate of the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">width</span></td>
|
|
<td><p>The specified width.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/new/develop/apiSpec/new?filename=DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringMonospace_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Drawing_PointF_.md&value=---%0Auid%3A%20DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringMonospace(System.Drawing.Graphics%2CSystem.String%2CSystem.Drawing.Font%2CSystem.Drawing.Brush%2CSystem.Drawing.PointF)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/blob/develop/src/DesktopMagicPluginAPI/Drawing/GraphicsExtentions.cs/#L43">View Source</a>
|
|
</span>
|
|
<a id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringMonospace_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringMonospace*"></a>
|
|
<h4 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringMonospace_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Drawing_PointF_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringMonospace(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF)">DrawStringMonospace(Graphics, String, Font, Brush, PointF)</h4>
|
|
<div class="markdown level1 summary"><p><inheritdoc cref="M:System.Drawing.Graphics.DrawString(System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF)"></inheritdoc></p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void DrawStringMonospace(this Graphics graphics, string s, Font font, Brush brush, PointF point)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Graphics</span></td>
|
|
<td><span class="parametername">graphics</span></td>
|
|
<td><p>Graphics object.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">s</span></td>
|
|
<td><p>String to draw.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Font</span></td>
|
|
<td><span class="parametername">font</span></td>
|
|
<td><p><span class="xref">System.Drawing.Font</span> that defines the text format of the string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Brush</span></td>
|
|
<td><span class="parametername">brush</span></td>
|
|
<td><p><span class="xref">System.Drawing.Brush</span> that determines the color and texture of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.PointF</span></td>
|
|
<td><span class="parametername">point</span></td>
|
|
<td><p><span class="xref">System.Drawing.PointF</span> structure that specifies the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/new/develop/apiSpec/new?filename=DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringMonospace_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Single_System_Single_.md&value=---%0Auid%3A%20DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringMonospace(System.Drawing.Graphics%2CSystem.String%2CSystem.Drawing.Font%2CSystem.Drawing.Brush%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/blob/develop/src/DesktopMagicPluginAPI/Drawing/GraphicsExtentions.cs/#L23">View Source</a>
|
|
</span>
|
|
<a id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringMonospace_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringMonospace*"></a>
|
|
<h4 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringMonospace_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Single_System_Single_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringMonospace(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single)">DrawStringMonospace(Graphics, String, Font, Brush, Single, Single)</h4>
|
|
<div class="markdown level1 summary"><p><inheritdoc cref="M:System.Drawing.Graphics.DrawString(System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single)"></inheritdoc></p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void DrawStringMonospace(this Graphics graphics, string s, Font font, Brush brush, float x, float y)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Graphics</span></td>
|
|
<td><span class="parametername">graphics</span></td>
|
|
<td><p>Graphics object.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">s</span></td>
|
|
<td><p>String to draw.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Font</span></td>
|
|
<td><span class="parametername">font</span></td>
|
|
<td><p><span class="xref">System.Drawing.Font</span> that defines the text format of the string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Brush</span></td>
|
|
<td><span class="parametername">brush</span></td>
|
|
<td><p><span class="xref">System.Drawing.Brush</span> that determines the color and texture of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">x</span></td>
|
|
<td><p>The x-coordinate of the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">y</span></td>
|
|
<td><p>The y-coordinate of the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/new/develop/apiSpec/new?filename=DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringNoLeftPadding_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Drawing_PointF_.md&value=---%0Auid%3A%20DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringNoLeftPadding(System.Drawing.Graphics%2CSystem.String%2CSystem.Drawing.Font%2CSystem.Drawing.Brush%2CSystem.Drawing.PointF)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/blob/develop/src/DesktopMagicPluginAPI/Drawing/GraphicsExtentions.cs/#L124">View Source</a>
|
|
</span>
|
|
<a id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringNoLeftPadding_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringNoLeftPadding*"></a>
|
|
<h4 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringNoLeftPadding_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Drawing_PointF_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringNoLeftPadding(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF)">DrawStringNoLeftPadding(Graphics, String, Font, Brush, PointF)</h4>
|
|
<div class="markdown level1 summary"><p><inheritdoc cref="M:System.Drawing.Graphics.DrawString(System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF)"></inheritdoc></p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void DrawStringNoLeftPadding(this Graphics graphics, string s, Font font, Brush brush, PointF point)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Graphics</span></td>
|
|
<td><span class="parametername">graphics</span></td>
|
|
<td><p>Graphics object.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">s</span></td>
|
|
<td><p>String to draw.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Font</span></td>
|
|
<td><span class="parametername">font</span></td>
|
|
<td><p><span class="xref">System.Drawing.Font</span> that defines the text format of the string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Brush</span></td>
|
|
<td><span class="parametername">brush</span></td>
|
|
<td><p><span class="xref">System.Drawing.Brush</span> that determines the color and texture of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.PointF</span></td>
|
|
<td><span class="parametername">point</span></td>
|
|
<td><p><span class="xref">System.Drawing.PointF</span> structure that specifies the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/new/develop/apiSpec/new?filename=DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringNoLeftPadding_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Single_System_Single_.md&value=---%0Auid%3A%20DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringNoLeftPadding(System.Drawing.Graphics%2CSystem.String%2CSystem.Drawing.Font%2CSystem.Drawing.Brush%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/blob/develop/src/DesktopMagicPluginAPI/Drawing/GraphicsExtentions.cs/#L103">View Source</a>
|
|
</span>
|
|
<a id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringNoLeftPadding_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringNoLeftPadding*"></a>
|
|
<h4 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_DrawStringNoLeftPadding_System_Drawing_Graphics_System_String_System_Drawing_Font_System_Drawing_Brush_System_Single_System_Single_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringNoLeftPadding(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single)">DrawStringNoLeftPadding(Graphics, String, Font, Brush, Single, Single)</h4>
|
|
<div class="markdown level1 summary"><p><inheritdoc cref="M:System.Drawing.Graphics.DrawString(System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single)"></inheritdoc></p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void DrawStringNoLeftPadding(this Graphics graphics, string s, Font font, Brush brush, float x, float y)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Graphics</span></td>
|
|
<td><span class="parametername">graphics</span></td>
|
|
<td><p>Graphics object.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">s</span></td>
|
|
<td><p>String to draw.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Font</span></td>
|
|
<td><span class="parametername">font</span></td>
|
|
<td><p><span class="xref">System.Drawing.Font</span> that defines the text format of the string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Brush</span></td>
|
|
<td><span class="parametername">brush</span></td>
|
|
<td><p><span class="xref">System.Drawing.Brush</span> that determines the color and texture of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">x</span></td>
|
|
<td><p>The x-coordinate of the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Single</span></td>
|
|
<td><span class="parametername">y</span></td>
|
|
<td><p>The y-coordinate of the upper-left corner of the drawn text.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/new/develop/apiSpec/new?filename=DesktopMagicPluginAPI_Drawing_GraphicsExtentions_MeasureStringNoLeftPadding_System_Drawing_Graphics_System_String_System_Drawing_Font_.md&value=---%0Auid%3A%20DesktopMagicPluginAPI.Drawing.GraphicsExtentions.MeasureStringNoLeftPadding(System.Drawing.Graphics%2CSystem.String%2CSystem.Drawing.Font)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/blob/develop/src/DesktopMagicPluginAPI/Drawing/GraphicsExtentions.cs/#L144">View Source</a>
|
|
</span>
|
|
<a id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_MeasureStringNoLeftPadding_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.MeasureStringNoLeftPadding*"></a>
|
|
<h4 id="DesktopMagicPluginAPI_Drawing_GraphicsExtentions_MeasureStringNoLeftPadding_System_Drawing_Graphics_System_String_System_Drawing_Font_" data-uid="DesktopMagicPluginAPI.Drawing.GraphicsExtentions.MeasureStringNoLeftPadding(System.Drawing.Graphics,System.String,System.Drawing.Font)">MeasureStringNoLeftPadding(Graphics, String, Font)</h4>
|
|
<div class="markdown level1 summary"><p><inheritdoc cref="M:System.Drawing.Graphics.MeasureString(System.String,System.Drawing.Font)"></inheritdoc></p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static SizeF MeasureStringNoLeftPadding(this Graphics graphics, string text, Font font)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Graphics</span></td>
|
|
<td><span class="parametername">graphics</span></td>
|
|
<td><p>Graphics object.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">text</span></td>
|
|
<td><p>String to measure.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.Font</span></td>
|
|
<td><span class="parametername">font</span></td>
|
|
<td><p><span class="xref">System.Drawing.Font</span> that defines the text format of the string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Drawing.SizeF</span></td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</article>
|
|
</div>
|
|
|
|
<div class="hidden-sm col-md-2" role="complementary">
|
|
<div class="sideaffix">
|
|
<div class="contribution">
|
|
<ul class="nav">
|
|
<li>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/new/develop/apiSpec/new?filename=DesktopMagicPluginAPI_Drawing_GraphicsExtentions.md&value=---%0Auid%3A%20DesktopMagicPluginAPI.Drawing.GraphicsExtentions%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://github.com/Stone-Red-Code/DesktopMagic/blob/develop/src/DesktopMagicPluginAPI/Drawing/GraphicsExtentions.cs/#L10" class="contribution-link">View Source</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
|
|
<h5>In This Article</h5>
|
|
<div></div>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer>
|
|
<div class="grad-bottom"></div>
|
|
<div class="footer">
|
|
<div class="container">
|
|
<span class="pull-right">
|
|
<a href="#top">Back to top</a>
|
|
</span>
|
|
|
|
<span>Generated by <strong>DocFX</strong></span>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
|
|
<script type="text/javascript" src="../styles/docfx.vendor.js"></script>
|
|
<script type="text/javascript" src="../styles/docfx.js"></script>
|
|
<script type="text/javascript" src="../styles/main.js"></script>
|
|
</body>
|
|
</html>
|