Opens the object's Properties dialog.
public virtual void ShowObjectPropertiesDialog()Public Overridable Sub ShowObjectPropertiesDialog()public:virtual void ShowObjectPropertiesDialog();
Call the CanShowObjectPropertiesDialog property to determine whether the object's Properties dialog can be displayed at this time. The dialog used is AnnAutomationManager.ObjectPropertiesDialogType. If the value of AnnAutomationManager.ObjectPropertiesDialogType is null (Nothing in VB), this method will not do anything.
This example displays the annotation properties dialog
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnAutomation_ShowObjectPropertiesDialog(ByVal automation As AnnAutomation)' first add a new object to the automationDim rectObj As AnnRectangleObject = New AnnRectangleObject()rectObj.Rect = New Rect(100, 100, 100, 100)rectObj.Stroke = Colors.BluerectObj.StrokeThickness = 2.0rectObj.Fill = Colors.Yellowautomation.Container.Children.Add(rectObj)' make sure no objects are selected in the automationautomation.SelectNone()' show the object properties dialog (this should show a message informing you that no objects are currently selected (bring edited)ShowProperties(automation)' select (edit) the object we have just addedautomation.StartEditing(rectObj, False)' show the object properties dialog (should show the object properties dialog)ShowProperties(automation)End SubPrivate Sub ShowProperties(ByVal automation As AnnAutomation)' check if we can show the dialogIf automation.CanShowObjectPropertiesDialog Thenautomation.ShowObjectPropertiesDialog()ElseMessageBox.Show("Cannot show the object properties dialog because no object is currently being edited (selected)")End IfEnd Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;private void AnnAutomation_ShowObjectPropertiesDialog(AnnAutomation automation){// first add a new object to the automationAnnRectangleObject rectObj = new AnnRectangleObject();rectObj.Rect = new Rect(100, 100, 100, 100);rectObj.Stroke = Colors.Blue;rectObj.Fill = Colors.Yellow;rectObj.StrokeThickness = 2.0;automation.Container.Children.Add(rectObj);// make sure no objects are selected in the automationautomation.SelectNone();// show the object properties dialog (this should show a message informing you that no objects are currently selected (bring edited)ShowProperties(automation);// select (edit) the object we have just addedautomation.StartEditing(rectObj, false);// show the object properties dialog (should show the object properties dialog)ShowProperties(automation);}private void ShowProperties(AnnAutomation automation){// check if we can show the dialogif(automation.CanShowObjectPropertiesDialog)automation.ShowObjectPropertiesDialog();elseMessageBox.Show("Cannot show the object properties dialog because no object is currently being edited (selected)");}
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;using Leadtools.Silverlight.Demos;private void AnnAutomation_ShowObjectPropertiesDialog(AnnAutomation automation){// first add a new object to the automationAnnRectangleObject rectObj = new AnnRectangleObject();rectObj.Rect = new Rect(100, 100, 100, 100);rectObj.Stroke = Colors.Blue;rectObj.Fill = Colors.Yellow;rectObj.StrokeThickness = 2.0;automation.Container.Children.Add(rectObj);// make sure no objects are selected in the automationautomation.SelectNone();// show the object properties dialog (this should show a message informing you that no objects are currently selected (bring edited)ShowProperties(automation);// select (edit) the object we have just addedautomation.StartEditing(rectObj, false);// show the object properties dialog (should show the object properties dialog)ShowProperties(automation);}private void ShowProperties(AnnAutomation automation){// check if we can show the dialogif(automation.CanShowObjectPropertiesDialog)automation.ShowObjectPropertiesDialog();elseMessageBox.Show("Cannot show the object properties dialog because no object is currently being edited (selected)");}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsImports Leadtools.Silverlight.DemosPrivate Sub AnnAutomation_ShowObjectPropertiesDialog(ByVal automation As AnnAutomation)' first add a new object to the automationDim rectObj As AnnRectangleObject = New AnnRectangleObject()rectObj.Rect = New Rect(100, 100, 100, 100)rectObj.Stroke = Colors.BluerectObj.Fill = Colors.YellowrectObj.StrokeThickness = 2.0automation.Container.Children.Add(rectObj)' make sure no objects are selected in the automationautomation.SelectNone()' show the object properties dialog (this should show a message informing you that no objects are currently selected (bring edited)ShowProperties(automation)' select (edit) the object we have just addedautomation.StartEditing(rectObj, False)' show the object properties dialog (should show the object properties dialog)ShowProperties(automation)End SubPrivate Sub ShowProperties(ByVal automation As AnnAutomation)' check if we can show the dialogIf automation.CanShowObjectPropertiesDialog Thenautomation.ShowObjectPropertiesDialog()ElseMessageBox.Show("Cannot show the object properties dialog because no object is currently being edited (selected)")End IfEnd Sub
|
Products |
Support |
Feedback: ShowObjectPropertiesDialog Method - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.