LEADTOOLS Forms (Leadtools.Forms.Auto assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
DeleteMasterForm Method
See Also 
Leadtools.Forms.Auto Namespace > DiskMasterFormsCategory Class : DeleteMasterForm Method



masterForm
The Master Form object to be deleted.

The DeleteMasterForm Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

masterForm
The Master Form object to be deleted.
Removes the first appearance of the specified Master Form object from MasterForms and deletes it from the local disk.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub DeleteMasterForm( _
   ByVal masterForm As IMasterForm _
) 
Visual Basic (Usage)Copy Code
Dim instance As DiskMasterFormsCategory
Dim masterForm As IMasterForm
 
instance.DeleteMasterForm(masterForm)
C# 
public virtual void DeleteMasterForm( 
   IMasterForm masterForm
)
C++/CLI 
public:
virtual void DeleteMasterForm( 
   IMasterForm^ masterForm
) 

Parameters

masterForm
The Master Form object to be deleted.

Example

For an example, refer to GenerateMasterFormAttributes.

Remarks

The source code of this interface implementation class is available at <Install Directory>\Examples\DotNet\CS\AutoMasterFormsRepository.

The masterForm file will be deleted and cannot be restored. If the user want to do different action he can inherit this class and override this method or he can do his own implementation of IMasterFormsCategory. Be advised to have a back up copy of all Master Forms if this used this class, in case you have deleted the wrong Master Form.

There is no need to call DiskMasterFormsRepository.Refresh since the repository that this Master Form belongs will be updated with this deletion.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features