Okapi .NET Library

IFilterItem.CopyFrom Method 

 [This is preliminary documentation and subject to change.]

Copies all the data from a specified filter item.

[Visual Basic]
Sub CopyFrom( _ 
   ByVal p_FilterItem As IFilterItem _ 
)
[C#]
void CopyFrom(
   IFilterItem p_FilterItem
);
[C++]
void CopyFrom(
   IFilterItem* p_FilterItem
);
[JScript]
function CopyFrom(
   IFilterItem p_FilterItem
);

Parameters

p_FilterItem
The filter item from which to copy the data.

Remarks

Use this method to duplicate all the content of an item.

Example

if ( Flt.ReadNextItem() == FilterItemType.TEXT )
{
   FilterItem FI = new FilterItem();
   FI.CopyFrom(Flt.GetItem());
   // Now FI and Flt.Getitem() are independent of each other
   // can be modified separately.
}

See Also

IFilterItem Interface | Okapi.Library.Filter Namespace