コード例 #1
0
ファイル: XLStyleValue.cs プロジェクト: zhoushlu/ClosedXML
 internal XLStyleValue(XLStyleKey key)
 {
     Key          = key;
     Alignment    = XLAlignmentValue.FromKey(Key.Alignment);
     Border       = XLBorderValue.FromKey(Key.Border);
     Fill         = XLFillValue.FromKey(Key.Fill);
     Font         = XLFontValue.FromKey(Key.Font);
     NumberFormat = XLNumberFormatValue.FromKey(Key.NumberFormat);
     Protection   = XLProtectionValue.FromKey(Key.Protection);
 }
コード例 #2
0
ファイル: XLStyleValue.cs プロジェクト: wtf3505/ClosedXML
 internal XLStyleValue(XLStyleKey key)
 {
     Key = key;
     var(alignment, border, fill, font, _, numberFormat, protection) = Key;
     Alignment          = XLAlignmentValue.FromKey(ref alignment);
     Border             = XLBorderValue.FromKey(ref border);
     Fill               = XLFillValue.FromKey(ref fill);
     Font               = XLFontValue.FromKey(ref font);
     IncludeQuotePrefix = key.IncludeQuotePrefix;
     NumberFormat       = XLNumberFormatValue.FromKey(ref numberFormat);
     Protection         = XLProtectionValue.FromKey(ref protection);
 }
コード例 #3
0
 public XLProtection(XLStyle style, XLProtectionKey key) : this(style, XLProtectionValue.FromKey(key))
 {
 }
コード例 #4
0
 /// <summary>
 /// Create an instance of XLProtection initializing it with the specified value.
 /// </summary>
 /// <param name="style">Style to attach the new instance to.</param>
 /// <param name="value">Style value to use.</param>
 public XLProtection(XLStyle style, XLProtectionValue value)
 {
     _style = style ?? XLStyle.CreateEmptyStyle();
     _value = value;
 }