public object Clone() { BIFF8Style obj = (BIFF8Style)MemberwiseClone(); obj.m_xfData = (byte[])m_xfData.Clone(); obj.m_hash = 0; return(obj); }
internal int AddStyle(StyleProperties props) { BIFF8Style bIFF8Style = new BIFF8Style(props); BIFF8Font font = new BIFF8Font(props); bIFF8Style.Ifnt = AddFont(font); bIFF8Style.Ifmt = AddFormat(props.NumberFormat); return(AddStyle(bIFF8Style)); }
internal int AddStyle(BIFF8Style style) { if (!m_styleMap.TryGetValue(style, out int value)) { value = m_styles.Count + 21; m_styleMap.Add(style, value); m_styles.Add(style); } return(value); }
public override bool Equals(object target) { BIFF8Style bIFF8Style = (BIFF8Style)target; for (int i = 0; i < m_xfData.Length; i++) { byte num = m_xfData[i]; byte b = bIFF8Style.m_xfData[i]; if (num != b) { return(false); } } return(true); }