Click or drag to resize

MacroFeatureExTParams, THandlerOnEditDefinition Method

Called when the Edit feature menu is clicked from the feature manager tree

Namespace:  CodeStack.SwEx.MacroFeature
Assembly:  CodeStack.SwEx.MacroFeature (in CodeStack.SwEx.MacroFeature.dll) Version: 0.5.3.0 (0.5.3.0)
Syntax
protected virtual bool OnEditDefinition(
	THandler handler
)

Parameters

handler
Type: THandler
Pointer to the macro feature handler of the feature being edited

Return Value

Type: Boolean
Result of the editing
Remarks
Use this handler to display property manager page or any other user interface to edit feature. Refer the SwEx.PMPage Framework for advanced way of creating property pages. Usually feature needs to be rolled back in the feature tree when edited. Use IMacroFeatureData::AccessSelections to start editing of the feature. Call IFeature::ModifyDefinition to submit the changes or IMacroFeatureData::ReleaseSelectionAccess to cancel the editing. It is important to use the same pointer to IMacroFeatureData in all of the above methods. Use IFeature::GetDefinition to get the pointer and store it in a variable.
See Also