|
procedure LoadFromTextFile( FN : string); |
|
procedure SaveToTextFile( FN : string); |
|
procedure SaveToStream(Stream: TStream); |
|
procedure LoadFromStream(Stream: TStream); |
|
function Add(Item: TXPatternData): Integer;
Adds pattern in a collection. Returns index of
pattern in a collection |
|
procedure Clear;
Clears a collection but does not release its
elements |
|
procedure Delete(Index: Integer);
Deletes an element on an index but does not release
it |
|
procedure Remove(Index: Integer);
Deletes an element on an index and releases it |
|
procedure RemoveAll;
Clears a collection and releases its elements |
|
property Count : integer
Quantity of elements in a collection |
|
procedure ForEach( Action : TForEachItem);
Makes action with each element |
|
property Items [Index: Integer]: TXPatternData;
Returns an element on the given index |
|
function IndexOf( Item : TXPatternData) : integer;
Returns an index of the given element |
|
property Bounds : TPoint;
The sizes of a crossword puzzle |
|
property Selected [Index: Integer]: boolean;
Set or reset item selection. If index < 0
then set or reset for all elements |
|
property ItemIndex : integer;
Index of the current element |
|
function XrossList( Index : Integer; XL : TList) : integer;
Returns quantity of patterns, which cross pattern
on the given index. If such patterns exist, their list returns in variable
XL |
|
function OverlayList( Index : Integer; OL : TList) : integer;
Returns quantity of patterns, which overlays
on pattern on the given index. If such patterns exist, their list returns
in variable OL |
|
function IndexOfXY( X, Y : byte) : integer;
Returns an index of pattern in a collection,
which contains a point X, Y |
|
property Sort : TSortKind;
Sort collection
skNoSort, skNothing - no sort
skYXO, - by X,Y,O values of pattern
skLength, by word length
skWord,
skFill, by word fill value
skXross, by cross number
skTouch, by touch count |
|
property SortDescend : boolean; |
|
property Lock : boolean;
Blocks/unblock internal calculations in a collection |
|
function XWordIndex( XW : XWordType) : integer;
Search of a word in a collection |
|
property XWItems [Index: Integer]: TXWordData; |
|
property XWords[Index: Integer]: XWordType; |
|
property XMatch[Index: Integer]: boolean; |
|
procedure XWStat( var WComplete, WPartialFill, WEmpty : integer);
Returns statistics
WComplete - Quantity of words filled completely
WPartialFill - Quantity of words filled partially
WEmpty - Quantity of empty words |
|
property OnIndexChange |
|
property OnAdd |
|
property OnWordChange |
|
|
|
|