internal static XLAlignmentKey GenerateKey(IXLAlignment d) { XLAlignmentKey key; if (d == null) { key = XLAlignmentValue.Default.Key; } else if (d is XLAlignment) { key = (d as XLAlignment).Key; } else { key = new XLAlignmentKey { Horizontal = d.Horizontal, Vertical = d.Vertical, Indent = d.Indent, JustifyLastLine = d.JustifyLastLine, ReadingOrder = d.ReadingOrder, RelativeIndent = d.RelativeIndent, ShrinkToFit = d.ShrinkToFit, TextRotation = d.TextRotation, WrapText = d.WrapText }; } return(key); }
public void Deconstruct( out XLAlignmentKey alignment, out XLBorderKey border, out XLFillKey fill, out XLFontKey font, out Boolean includeQuotePrefix, out XLNumberFormatKey numberFormat, out XLProtectionKey protection) { alignment = Alignment; border = Border; fill = Fill; font = Font; includeQuotePrefix = IncludeQuotePrefix; numberFormat = NumberFormat; protection = Protection; }
public XLAlignment(XLStyle style, XLAlignmentKey key) : this(style, XLAlignmentValue.FromKey(ref key)) { }
public static XLAlignmentValue FromKey(ref XLAlignmentKey key) { return(Repository.GetOrCreate(ref key)); }
private XLAlignmentValue(XLAlignmentKey key) { Key = key; }