public bool addBitmapSizeTableCache( uint nIndex, bitmapSizeTableCache bstc ) { bool bResult = true; if( bstc == null ) { bResult = false; throw new ArgumentNullException( "Argument can not be null" ); } else if( nIndex > m_numSizes ) { bResult = false; throw new ArgumentOutOfRangeException( "nIndex is out of range." ); } else { m_bitmapSizeTables.Insert( (int)nIndex, bstc.Clone()); m_numSizes++; m_bDirty = true; } return bResult; }
public object Clone() { bitmapSizeTableCache bstc = new bitmapSizeTableCache(); bstc.m_numberOfIndexSubTables = m_numberOfIndexSubTables; bstc.m_indexSubTableArray = (ArrayList)m_indexSubTableArray.Clone(); bstc.hori = hori; bstc.vert = vert; bstc.colorRef = colorRef; bstc.hori = hori; bstc.vert = vert; bstc.m_startGlyphIndex = m_startGlyphIndex; bstc.m_endGlyphIndex = m_endGlyphIndex; bstc.ppemX = ppemX; bstc.ppemY = ppemY; bstc.bitDepth = bitDepth; bstc.flags = flags; return null; }