AccessText.LineHeight Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the height of each line box.
public:
property double LineHeight { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))]
public double LineHeight { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))>]
member this.LineHeight : double with get, set
Public Property LineHeight As Double
A double that specifies the height of each line box. This value must be equal to or greater than 0.0034
and equal to or less then 160000
. A value of NaN (equivalent to an attribute value of Auto
) causes the line height to be determined automatically from the current font characteristics. The default is NaN.
- Attributes
Changing this value does not change the height of the associated text; instead, it changes the box that contains it. To change the size of the text, use the FontSize property.
Identifier field | LineHeightProperty |
Metadata properties set to true |
AffectsMeasure, AffectsRender, Inherits |
<object LineHeight="double"/>
- or -
<object LineHeight ="qualifiedDouble"/>
- or -
<object LineHeight ="Auto"/>
double
Double
A string representation of a Double value. This value is interpreted as a device-independent unit (1/96th inch) measurement. Strings need not explicitly include decimal points. For example, you can specify a value of 1
.
The same Double range restrictions as mentioned in the Property Value section apply here.
qualifiedDouble
A double value that is followed by one of these unit declaration strings: px
, in
, cm
, pt
.
px
(default) is device-independent units (1/96th inch per unit)
in
is inches; 1in==96px
cm
is centimeters; 1cm==(96/2.54) px
pt
is points; 1pt==(96/72) px
Auto
An automatic line height determination. If you programmatically set the Auto value, its value corresponds to Double.NaN.
Toode | Versioonid |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: