Faster Constraint Add |
Post Reply |
Author | |
jemery
Groupie Joined: 09 January 2008 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 10 June 2008 at 5:14pm |
I have a rather massive property grid, or I should say one with thousands of parameters. Is there any faster method of adding multiple constraints (like an override with a string[] passed in)?
item.Constraints.Clear(); int i = 0; for (i=0; i<constraints.strings.Length; i++) { item.Constraints.Add(constraints.strings, i); } Right now this seems to be the only method, but I'm sure internally it could be performing this action a lot faster. Apologies if someone has already asked this. I don't see it mentioned in the forums. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
There is no other methods.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |