AccessText.FontSize Свойство
Определение
Получает или задает размер шрифта для элемента AccessText.Gets or sets the font size to use with the AccessText element.
public:
property double FontSize { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.FontSizeConverter))]
[System.Windows.Localizability(System.Windows.LocalizationCategory.None)]
public double FontSize { get; set; }
member this.FontSize : double with get, set
Public Property FontSize As Double
Значение свойства
Используемый размер шрифта.The font size to use. По умолчанию используется размер шрифта, определенный на основе значения свойства MessageFontSize.The default is the font size that is determined by the MessageFontSize metric.
- Атрибуты
Примеры
В следующем примере показано, как задать свойства для изменения внешнего вида текста в AccessText элементе управления.The following example shows how to set properties to change the appearance of the text in an AccessText control.
<TextBox Name="textBox2" Width="50" Height="30"/>
<Label Target="{Binding ElementName=textBox2}">
<AccessText Background="Red" Foreground="DarkSlateBlue"
FontFamily="Arial Narrow" FontSize="16" FontStyle="Italic"
FontWeight="Bold">
E_dit
</AccessText>
</Label>
Комментарии
Сведения о свойстве зависимостейDependency Property Information
Поле идентификатораIdentifier field | FontSizeProperty |
Свойства метаданных, для которых задано значениеtrue Metadata properties set to true |
AffectsMeasure, AffectsRender, InheritsAffectsMeasure, AffectsRender, Inherits |
Использование атрибута XAMLXAML Attribute Usage
<object FontSize="double"/>
- or -
<object FontSize ="qualifiedDouble"/>
Значения XAMLXAML Values
DoubleDouble
Double
Строковое представление Double значения.A string representation of a Double value. Это значение интерпретируется как аппаратно-независимая единица (1/96 дюйма)device-independent unit (1/96th inch) измерение.This value is interpreted as a аппаратно-независимая единица (1/96 дюйма)device-independent unit (1/96th inch) measurement. Строки не должны явно включать десятичные разделители.Strings need not explicitly include decimal points. Например, можно указать значение 1
.For example, you can specify a value of 1
.
куалифиеддаублеqualifiedDouble
Значение типа Double , за которым следует одна из следующих строк объявления единицы: px
, in
, cm
, pt
.A double value that is followed by one of these unit declaration strings: px
, in
, cm
, pt
.
px
(по умолчанию)аппаратно-независимые единицы (1/96 дюйма на единицу)device-independent units (1/96th inch per unit)px
(default) is аппаратно-независимые единицы (1/96 дюйма на единицу)device-independent units (1/96th inch per unit)
in
— дюймы; 1in = = 96 пикселейin
is inches; 1in==96px
cm
— сантиметры; 1cm = = (96/2,54) pxcm
is centimeters; 1cm==(96/2.54) px
pt
является точкой; выбрано 1pt = = (96/72) pxpt
is points; 1pt==(96/72) px
Примечание . Во многих случаях можно задать значение Double равным Auto
, однако для этого Auto
свойства нельзя задать значение.Note In many cases, you can set a double to Auto
; however, you cannot set this property to Auto
.