<html dir="ltr" xmlns:mshelp="http://msdn.microsoft.com/mshelp"
xmlns:silverlightsdk="http://msdn.microsoft.com/silverlight" xmlns=
"http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="online documentation, web online help, web help, chm2web" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="chm2web Standard 2.7 (unicode)" />
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8" />
<title>EndPoint Property (LinearGradientBrush)</title>
<link rel="stylesheet" href="../../default.css" type="text/css" />
<script type="text/JavaScript" src="../../files/supply.js"></script>
<script type="text/JavaScript">
chmtop.c2wtopf.pageid = "reference/p_lineargradientbrush_endpoint.htm";
</script>
</head>
<body topmargin="0"><script type="text/JavaScript">
if (window.name != "content")
document.write(" <table width=\"100%\" bgcolor=\"#e1e1e1\"cellspacing=\"2\" cellpadding=\"0\" style=\"border-collapse: collapse; font-family: sans-serif; font-size: 14px; color: #000000; text-decoration: none; \"> <tr> <td align=\"center\" style=\"border-bottom: 2px solid gray\" > <br> Click <a href=\"../../index.html?page=source%2freference%2fp_lineargradientbrush_endpoint.htm\">here</a> to show toolbars of the Web Online Help System: <a href=\"../../index.html?page=source%2freference%2fp_lineargradientbrush_endpoint.htm\">show toolbars</a><br> </td></tr></table><br> ");
</script>
<!-- !chm2web! -->
<span id="sdkbannersection"></span>
<div class="tableSection"><span id="sdkbannersection"></span>
<table class="buttonbarshade" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
</div>
<div class="tableSection"><span id="sdkbannersection"></span>
<table class="buttonbartable" cellspacing="0">
<tr id="hdr">
<td class="runninghead" nowrap="nowrap"><img src=
"../common/logo.png" height="21" alt="Silverlight SDK" />
</td>
</tr>
</table>
</div>
<p><span class="betaboilerplate"><font color="gray" pointsize="8.5"
face="Verdana">[This topic is pre-release documentation and is
subject to change in future releases. Blank topics are included as
placeholders.]</font></span>
</p>
<h1><a name=
"silverlight_lineargradientbrush_endpoint_property"></a>EndPoint
Property (LinearGradientBrush)</h1>
<div id="mainSection">
<div id="mainBody">
<p>Gets or sets the ending two-dimensional coordinates of the
linear gradient.</p>
<div id="syntaxblock">
<table class="auto_syntaxtable" id="syntaxtable" style=
"width: 90%; background: #CCCCCC; border: none;">
<tr id="xamlSyntaxBlock">
<th class="syntaxblocklanguage" nowrap="nowrap" style=
"width: 150px; background: #EEEEEE; vertical-align: top;">XAML</th>
<td class="syntaxblockcode" style="background:white;">
<div class="codesyntax" style=
"font-family: 'Courier New', Courier, monospace;"><<i>object</i>
<b>EndPoint</b>="<a href="o_point.htm">Point</a>" .../></div>
</td>
</tr>
<tr id="scriptingSyntaxBlock">
<th class="syntaxblocklanguage" nowrap="nowrap" style=
"width: 150px; background: #EEEEEE; vertical-align: top;">
Scripting</th>
<td class="syntaxblockcode" style="background:white;">
<div class="codesyntax" style=
"font-family: 'Courier New', Courier, monospace;">
<i>object</i>.<b>endPoint</b> = "<i>X</i>,<i>Y</i>"</div>
</td>
</tr>
</table>
</div>
<span id="propertyvalue"></span>
<h4><span id="propertyvalue">Property Value</span>
</h4>
<p><a href="o_point.htm">Point</a>
</p>
<p>The ending two-dimensional coordinates of the linear
gradient.</p>
<p>This property is write-only. The default value is 1,1.</p>
<span id="remarkssection"></span>
<h4><span id="remarkssection">Remarks</span>
</h4>
<p>A <b>LinearGradientBrush</b> paints an area with a linear
gradient. A linear gradient defines a gradient along a line. The
line's end points are defined by the <a href=
"p_lineargradientbrush_startpoint.htm">StartPoint</a> and <a href=
"p_lineargradientbrush_endpoint.htm">EndPoint</a> properties of the
linear gradient. A <b>LinearGradientBrush</b> brush paints its
<a href="p_gradientbrush_gradientstops.htm">GradientStops</a> along
this line.</p>
<p>The default linear gradient is diagonal. In the default, the
<a href="p_lineargradientbrush_startpoint.htm">StartPoint</a> of a
linear gradient is (0,0), the upper-left corner of the area being
painted, and its <a href=
"p_lineargradientbrush_endpoint.htm">EndPoint</a> is (1,1), the
lower-right corner of the area being painted. The colors in the
resulting gradient are interpolated along the diagonal path.</p>
<p>The following illustration shows a diagonal gradient. A line was
added to highlight the interpolation path of the gradient from the
start point to the end point.</p>
<p><img src=
"images/local_726607508_wcpsdk_graphicsmm_diagonalgradientaxis.jpg"
alt="Gradient axis for a diagonal linear gradient" />
</p>
<p>The next illustration shows the same linear gradient, but with
highlighted gradient stops.</p>
<p><img src=
"images/local_1860545327_wcpsdk_graphicsmm_4gradientstops.jpg" alt=
"Gradient stops in a linear gradient" />
</p>
<h4 class="subHeading">Specifying Relative or Absolute Values</h4>
<p>The <a href="o_brushmappingmode.htm">MappingMode</a> property of
a <b>LinearGradientBrush</b> determines whether its <b>EndPoint</b>
is interpreted as a relative or absolute value. By default, it is
treated as relative, which corresponds to a <b>MappingMode</b> of
<a href="o_brushmappingmode.htm">RelativeToBoundingBox</a>. A
<b>MappingMode</b> of <a href="o_brushmappingmode.htm">Absolute</a>
specifies that the <b>EndPoint</b> value is expressed in device
independent pixels. If you use <a href=
"o_brushmappingmode.htm">Absolute</a> mode, you will almost
certainly also want to change the <b>EndPoint</b>, because a value
of 1,1 versus a <b>StartPoint</b> of 0,0 would only apply the brush
to a single pixel.</p>
<span id="appliestosection"></span>
<h4><span id="appliestosection">Applies To</span>
</h4>
<p><a href="o_lineargradientbrush.htm">LinearGradientBrush</a>
</p>
<span id="seealsosection"></span>
<h4><span id="seealsosection">See Also</span>
</h4>
<p><a href="o_radialgradientbrush.htm">RadialGradientBrush</a>
</p>
</div>
</div>
<script type="text/JavaScript">
var fe = FindFrame("toc", top);
if ((fe != null) && (chmtop.c2wtopf.jstree != null)) {
if (chmtop.c2wtopf.FITEMS[chmtop.c2wtopf.pagenum] != chmtop.c2wtopf.pageid)
chmtop.c2wtopf.jstree.OpenTreeNode("source/" + chmtop.c2wtopf.pageid);
}
</script>
<!-- CHM2WEB -->
<!-- DO NOT DELETE OR MODIFY THIS CODE WITHOUT
WRITTEN PERMISSION OF A!K RESEARCH LABS -->
<table width="100%" cellspacing="0" cellpadding="0"
style="margin-top: 0pt; border-collapse: collapse;">
<tr> <td align="right" style="background-color:white; border-top: 1px solid gray;">
<a href="http://chm2web.aklabs.com" target="_blank" style="font-family: sans-serif; font-size: 11px; text-decoration: none;"><font color="gray">Converted from CHM to HTML with <b>chm2web Standard 2.7 (unicode)</b></font></a>
</td></tr></table>
<!-- /CHM2WEB -->
</body>
</html>