Ejemplo n.º 1
0
        public override void SetRTFProperties(FixedElement element)
        {
            if (_cultureInfo != null)
            {
                element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag));
            }
            element.SetValue(TextElement.FontSizeProperty, _fontSize);
            element.SetValue(TextElement.FontWeightProperty, _fontWeight);
            element.SetValue(TextElement.FontStretchProperty, _fontStretch);
            element.SetValue(TextElement.FontStyleProperty, _fontStyle);
            if (this.IsRTL)
            {
                element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
            }
            else
            {
                element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
            }

            if (_fontFamily != null)
            {
                element.SetValue(TextElement.FontFamilyProperty, new FontFamily(_fontFamily));
            }
            element.SetValue(TextElement.ForegroundProperty, _foreground);
        }
Ejemplo n.º 2
0
 public override void SetRTFProperties(FixedElement element)
 {
     if (this.IsRTL)
     {
         element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
     }
 }
Ejemplo n.º 3
0
 // Token: 0x06002DE0 RID: 11744 RVA: 0x000CE435 File Offset: 0x000CC635
 public override void SetRTFProperties(FixedElement element)
 {
     if (this._cultureInfo != null)
     {
         element.SetValue(FrameworkContentElement.LanguageProperty, XmlLanguage.GetLanguage(this._cultureInfo.IetfLanguageTag));
     }
 }
Ejemplo n.º 4
0
 // Token: 0x06002E22 RID: 11810 RVA: 0x000D0728 File Offset: 0x000CE928
 public override void SetRTFProperties(FixedElement element)
 {
     if (element.Type == typeof(Table))
     {
         element.SetValue(Table.CellSpacingProperty, 0.0);
     }
 }
Ejemplo n.º 5
0
 public override void SetRTFProperties(FixedElement element)
 {
     element.SetValue(Block.BorderThicknessProperty, new Thickness(1));
     element.SetValue(Block.BorderBrushProperty, Brushes.Black);
     element.SetValue(TableCell.ColumnSpanProperty, _columnSpan);
 }
Ejemplo n.º 6
0
        public override void SetRTFProperties(FixedElement element)
        {
            if (_cultureInfo != null)
            {
                element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag));
            }
            element.SetValue(TextElement.FontSizeProperty, _fontSize);
            element.SetValue(TextElement.FontWeightProperty, _fontWeight);
            element.SetValue(TextElement.FontStretchProperty, _fontStretch);
            element.SetValue(TextElement.FontStyleProperty, _fontStyle);
            if (this.IsRTL)
            {
                element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
            }
            else
            {
                element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
            }

            if (_fontFamily != null)
            {
                element.SetValue(TextElement.FontFamilyProperty, new FontFamily(_fontFamily));
            }
            element.SetValue(TextElement.ForegroundProperty, _foreground);
        }
Ejemplo n.º 7
0
 public override void SetRTFProperties(FixedElement element)
 { 
     if (_cultureInfo != null) 
     {
         element.SetValue(FrameworkContentElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag)); 
     }
 }
Ejemplo n.º 8
0
 public override void SetRTFProperties(FixedElement element)
 {
     element.SetValue(Block.BorderThicknessProperty, new Thickness(1));
     element.SetValue(Block.BorderBrushProperty, Brushes.Black);
     element.SetValue(TableCell.ColumnSpanProperty, _columnSpan);
 }
Ejemplo n.º 9
0
 public override void SetRTFProperties(FixedElement element)
 {
     if (element.Type == typeof(Table))
     {
         element.SetValue(Table.CellSpacingProperty, 0.0);
     }
 }
Ejemplo n.º 10
0
 public override void SetRTFProperties(FixedElement element) 
 { 
     if (this.IsRTL)
     { 
         element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
     }
 }