938_____________________________________________ 15



 Canvas  TCanvas     Pen  -
 Brush,   ,     
.

   TImage      , 
  Picture       .  
Picture   ,   TBitMap.     Canvas
  EInvalidOperation.    Picture  -
 ,  Canvas     ,
,       TextOut.

Capacity__________________________________________

   ,     
 TList

 TList, TStringList



_property int Capacity



 Capacity  ,    , -
      TList.    Capacity -
,    ,   EOutOfMemory.

 Capacity      Count. Capacity -
,      , ..  , a Co-
unt ,       . -
  Capacity     Count.

      Count  -
  1.     Count   Capacity,  Capacity
  ,    (   3). 
  Capacity       .  -
 Capacity    ,     -
      .

    Count  ,  -
 Capacity  .  ,    -
    .     -
 Capacity   Count (      
  ).

   Capacity ,  Count,  
EListError  : List capacity out of bounds [...] (   -
 ).      Count.

   Clear  Capacity  .

 Capacity     Expand.



TList *List = new TList ();

List->Clear() ;

List-capacity = 5;

//  List->Count = 0  List-Capacity = 5

for (int 1=1; I <= 5; I++)
List->Add(...);