public FontStyleData(string name, FontStyle fontStyle, FontWeight fontWeight, TextDecorationLocation? textDecoration, FontVariants fontVariant, FontCapitals fontCapitals, double fontSize) { _name = name; _fontStyle = fontStyle; _fontWeight = fontWeight; _textDecoration = textDecoration; _fontVariant = fontVariant; _fontCapitals = fontCapitals; _fontSize = fontSize; }
public FontChoice(DependencyObject dependencyObject) { _family = dependencyObject.GetValue(TextElement.FontFamilyProperty) as FontFamily; _style = (FontStyle)dependencyObject.GetValue(TextElement.FontStyleProperty); _weight = (FontWeight)dependencyObject.GetValue(TextElement.FontWeightProperty); _stretch = (FontStretch)dependencyObject.GetValue(TextElement.FontStretchProperty); _size = (double)dependencyObject.GetValue(TextElement.FontSizeProperty); _decoration = dependencyObject.GetValue(Inline.TextDecorationsProperty) as TextDecorationCollection; _brush = dependencyObject.GetValue(TextElement.ForegroundProperty) as Brush; _annotationAlternates = (int)dependencyObject.GetValue(Typography.AnnotationAlternatesProperty); _capitals = (FontCapitals)dependencyObject.GetValue(Typography.CapitalsProperty); _capitalSpacing = (bool)dependencyObject.GetValue(Typography.CapitalSpacingProperty); _caseSensitiveForms = (bool)dependencyObject.GetValue(Typography.CaseSensitiveFormsProperty); _contextualAlternates = (bool)dependencyObject.GetValue(Typography.ContextualAlternatesProperty); _contextualLigatures = (bool)dependencyObject.GetValue(Typography.ContextualLigaturesProperty); _contextualSwashes = (int)dependencyObject.GetValue(Typography.ContextualSwashesProperty); _discretionaryLigatures = (bool)dependencyObject.GetValue(Typography.DiscretionaryLigaturesProperty); _eastAsianExpertForms = (bool)dependencyObject.GetValue(Typography.EastAsianExpertFormsProperty); _eastAsianLanguage = (FontEastAsianLanguage)dependencyObject.GetValue(Typography.EastAsianLanguageProperty); _eastAsianWidths = (FontEastAsianWidths)dependencyObject.GetValue(Typography.EastAsianWidthsProperty); _fraction = (FontFraction)dependencyObject.GetValue(Typography.FractionProperty); _historicalForms = (bool)dependencyObject.GetValue(Typography.HistoricalFormsProperty); _historicalLigatures = (bool)dependencyObject.GetValue(Typography.HistoricalLigaturesProperty); _kerning = (bool)dependencyObject.GetValue(Typography.KerningProperty); _mathematicalGreek = (bool)dependencyObject.GetValue(Typography.MathematicalGreekProperty); _numeralAlignment = (FontNumeralAlignment)dependencyObject.GetValue(Typography.NumeralAlignmentProperty); _numeralStyle = (FontNumeralStyle)dependencyObject.GetValue(Typography.NumeralStyleProperty); _slashedZero = (bool)dependencyObject.GetValue(Typography.SlashedZeroProperty); _standardLigatures = (bool)dependencyObject.GetValue(Typography.StandardLigaturesProperty); _standardSwashes = (int)dependencyObject.GetValue(Typography.StandardSwashesProperty); _stylisticAlternates = (int)dependencyObject.GetValue(Typography.StylisticAlternatesProperty); _stylisticSet1 = (bool)dependencyObject.GetValue(Typography.StylisticSet1Property); _stylisticSet2 = (bool)dependencyObject.GetValue(Typography.StylisticSet2Property); _stylisticSet3 = (bool)dependencyObject.GetValue(Typography.StylisticSet3Property); _stylisticSet4 = (bool)dependencyObject.GetValue(Typography.StylisticSet4Property); _stylisticSet5 = (bool)dependencyObject.GetValue(Typography.StylisticSet5Property); _stylisticSet6 = (bool)dependencyObject.GetValue(Typography.StylisticSet6Property); _stylisticSet7 = (bool)dependencyObject.GetValue(Typography.StylisticSet7Property); _stylisticSet8 = (bool)dependencyObject.GetValue(Typography.StylisticSet8Property); _stylisticSet9 = (bool)dependencyObject.GetValue(Typography.StylisticSet9Property); _stylisticSet10 = (bool)dependencyObject.GetValue(Typography.StylisticSet10Property); _stylisticSet11 = (bool)dependencyObject.GetValue(Typography.StylisticSet11Property); _stylisticSet12 = (bool)dependencyObject.GetValue(Typography.StylisticSet12Property); _stylisticSet13 = (bool)dependencyObject.GetValue(Typography.StylisticSet13Property); _stylisticSet14 = (bool)dependencyObject.GetValue(Typography.StylisticSet14Property); _stylisticSet15 = (bool)dependencyObject.GetValue(Typography.StylisticSet15Property); _stylisticSet16 = (bool)dependencyObject.GetValue(Typography.StylisticSet16Property); _stylisticSet17 = (bool)dependencyObject.GetValue(Typography.StylisticSet17Property); _stylisticSet18 = (bool)dependencyObject.GetValue(Typography.StylisticSet18Property); _stylisticSet19 = (bool)dependencyObject.GetValue(Typography.StylisticSet19Property); _stylisticSet20 = (bool)dependencyObject.GetValue(Typography.StylisticSet20Property); _variants = (FontVariants)dependencyObject.GetValue(Typography.VariantsProperty); }
public FontChoice(FontChoice choice) { _family = choice._family; _style = choice._style; _weight = choice._weight; _stretch = choice._stretch; _size = choice._size; _decoration = choice._decoration; _brush = choice._brush; _annotationAlternates = choice._annotationAlternates; _capitals = choice._capitals; _capitalSpacing = choice._capitalSpacing; _caseSensitiveForms = choice._caseSensitiveForms; _contextualAlternates = choice._contextualAlternates; _contextualLigatures = choice._contextualLigatures; _contextualSwashes = choice._contextualSwashes; _discretionaryLigatures = choice._discretionaryLigatures; _eastAsianExpertForms = choice._eastAsianExpertForms; _eastAsianLanguage = choice._eastAsianLanguage; _eastAsianWidths = choice._eastAsianWidths; _fraction = choice._fraction; _historicalForms = choice._historicalForms; _historicalLigatures = choice._historicalLigatures; _kerning = choice._kerning; _mathematicalGreek = choice._mathematicalGreek; _numeralAlignment = choice._numeralAlignment; _numeralStyle = choice._numeralStyle; _slashedZero = choice._slashedZero; _standardLigatures = choice._standardLigatures; _standardSwashes = choice._standardSwashes; _stylisticAlternates = choice._stylisticAlternates; _stylisticSet1 = choice._stylisticSet1; _stylisticSet2 = choice._stylisticSet2; _stylisticSet3 = choice._stylisticSet3; _stylisticSet4 = choice._stylisticSet4; _stylisticSet5 = choice._stylisticSet5; _stylisticSet6 = choice._stylisticSet6; _stylisticSet7 = choice._stylisticSet7; _stylisticSet8 = choice._stylisticSet8; _stylisticSet9 = choice._stylisticSet9; _stylisticSet10 = choice._stylisticSet10; _stylisticSet11 = choice._stylisticSet11; _stylisticSet12 = choice._stylisticSet12; _stylisticSet13 = choice._stylisticSet13; _stylisticSet14 = choice._stylisticSet14; _stylisticSet15 = choice._stylisticSet15; _stylisticSet16 = choice._stylisticSet16; _stylisticSet17 = choice._stylisticSet17; _stylisticSet18 = choice._stylisticSet18; _stylisticSet19 = choice._stylisticSet19; _stylisticSet20 = choice._stylisticSet20; _variants = choice._variants; }
public void SetCapitals(FontCapitals value) { _capitals = value; OnPropertiesChanged(); }
public static void SetCapitals(DependencyObject element, FontCapitals value) => Typography.SetTypographyValue(element, Typography.CapitalsProperty, (object)value);
/// <summary> /// Writes the attached property Capitals to the given element. /// </summary> /// <param name="element">The element to which to write the attached property.</param> /// <param name="value">The property value to set</param> /// <seealso cref="Typography.CapitalsProperty" /> public static void SetCapitals(DependencyObject element, FontCapitals value) { if (element == null) { throw new ArgumentNullException("element"); } element.SetValue(CapitalsProperty, value); }
// Token: 0x060066F3 RID: 26355 RVA: 0x001CD2CA File Offset: 0x001CB4CA public void SetCapitals(FontCapitals value) { this._capitals = value; base.OnPropertiesChanged(); }