Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns the width of the Shape.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public double Width{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property Width() As Double</p>Double
Remarks

If the Shape is directly within a Worksheet, the width is in points (1/72 inch). If the Shape is within Chartsheet, the width is a percentage of the chart's width (0-100).

If you set a shape's width (or Shape.Height) to a value read from a spreadsheet, the shape may lose precision due to the way Excel stores shape dimensions.