how to catch rectangle shape lable keypress event or text change event? i.e. InPlaceEdit property


how to catch rectangle shape lable keypress event or text change...
Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi,

You should subscribe to the PropertyChanged event of the document’s event sink service:

 

document.EventSinkService.NodePropertyChanged += new NodePropertyEventHandler(EventSinkService_NodePropertyChanged);

 

In the event handler you can use code similar to :

 

private void EventSinkService_NodePropertyChanged(NNodePropertyEventArgs args)

{

      if (args.PropertyName == "Text")

      {

            NLabel label = args.Node as NLabel;

            if (label != null)

            {

                  // Do what you need here

            }

      }

}

 



Best Regards,
Nevron Support Team


Balasaheb Sherkar
Balasaheb Sherkar
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
Posts: 6, Visits: 1

when inplaceedit is allowd to edit how to catch the lable or text of shapae is get changed.

please reply urgent. we are planning to purchase your diagram lib.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search