Ejemplo n.º 1
0
 public static ContentAlignment Create(StyleInfo style)
 {
     if ((style == null) || ((!style.IsHorizontalAlignmentSet() && !style.IsVerticalAlignmentSet()) && (!style.IsTextIndentSet() && !style.IsWordWrapSet())))
     {
         return(null);
     }
     return(new ContentAlignment {
         horizontalAlignment = new TextHorizontalAlignment?(HA2THA(style.HorizontalAlignment)), verticalAlignment = new TextVerticalAlignment?(VA2TVA(style.VerticalAlignment)), textIndent = new int?(style.TextIndent), wordWrap = new bool?(style.WordWrap)
     });
 }