Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example sets the column width for each column in a block selection.

C++

if(m_Spread.GetIsBlockSelected( ))
    for(lcol = m_Spread.GetSelBlockCol( );
            lcol <= m_Spread.GetSelBlockCol2( );
            lcol++)
            {
            m_Spread.SetColWidth(lcol,SS_Num);
            }

Visual Basic

If fpSpread1.IsBlockSelected Then
    For lcol = fpSpread1.SelBlockCol To fpSpread1.SelBlockCol2
        fpSpread1.ColWidth(lcol) = SS_Num
    Next lcol
End If

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.