Method GetTableDependecies
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
GetTableDependecies(vdTableDependeciesArgs)
Fills the passed vdTableDependeciesArgs args with all the table references of this object (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc).
public virtual void GetTableDependecies(vdTableDependeciesArgs args)
Parameters
argsvdTableDependeciesArgsA vdTableDependeciesArgs object where the table references of this object will be added to.
Examples
Implement GetTableDependecies for a custom object derived from a vdFigure and reference a vdTextStyle table
public class CustomFigureWithTextStyleRef : vdFigure
{
private vdTextstyle mTextStyle = null;
public vdTextstyle TextStyle
{
get
{
return mTextStyle;
}
set
{
mTextStyle = value;
}
}
////......................................
public override void GetTableDependecies(vdTableDependeciesArgs args)
{
base.GetTableDependecies(args);
if (args.IsObjectFound) return;
if (Deleted) return;
args.AddItem(TextStyle);
if (TextStyle != null) TextStyle.GetTableDependecies(args);
}
////............Other method overrides..........................
}
Remarks
Called by the Purge() , MergeTables(vdDocument, bool, bool), MergeTables(vdDocument, bool, MergeTablesFlags) , IsTableObjectDependOn(vdPrimary) method, or before deleting a table object. User custom objects that derived from vdFigure must implement this method and add the table references objects (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc) to the passed argument