Class PmpNumberBoxDisplayingEventArgs
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
event arguments for numberbox
public class PmpNumberBoxDisplayingEventArgs : PmpControlDisplayingEventArgs
- Inheritance
-
PmpNumberBoxDisplayingEventArgs
- Inherited Members
Constructors
PmpNumberBoxDisplayingEventArgs(PmpNumberBox)
event arguments for Displaying
public PmpNumberBoxDisplayingEventArgs(PmpNumberBox pmpNumberBox)
Parameters
pmpNumberBoxPmpNumberBox
Properties
CurrentSelection
gets or sets the current selection in the number box
public short CurrentSelection { get; set; }
Property Value
- short
0-based index of the selection
Text
Gets the text that appears in the number box.
public string Text { get; }
Property Value
Remarks
If a user changes the value in an number box by typing in a new value, the TextChanged is called with the current text string.
Methods
ChangeRange(NumberBoxUnit, double, double, bool, double, double, double)
changes the range and increment for the slider.
public void ChangeRange(NumberBoxUnit Units, double Minimum, double Maximum, bool Inclusive, double Increment, double fastIncrement, double slowIncrement)
Parameters
UnitsNumberBoxUnitNumber box units as defined in NumberBoxUnit (see Remarks)
MinimumdoubleMaximumdoubleInclusiveboolwhether the max should be inclusive in the range or not
IncrementdoublefastIncrementdoubleFast increment value for scrolling and mouse-wheel
slowIncrementdoubleSlow increment value for scrolling and mouse-wheel
Remarks
This method works while a PropertyManager page is displayed with these restrictions:
You cannot change Units once the page is displayed.The Units parameter is ignored if specified while the page is displayed.
If the range is changed to an invalid value by this method, then you must immediately call Value and set a valid value to prevent displaying the dialog that requests the user to enter a valid value.
Clear()
Clears all items from the attached drop-down list for this the number box.
public void Clear()
DeleteItem(short)
Deletes an item from the attached drop-down list for this number box.
public short DeleteItem(short item)
Parameters
itemshortIndex number of the item to delete from the 0-based list of items
Returns
- short
Number of items remaining in the list or -1 if the item is not deleted
ItemText(short)
Gets the text for an item in the attached drop-down list for this number box.
public string ItemText(short item)
Parameters
itemshortPosition of the item where to get the text in the 0-based list or -1 to get the text of the currently selected item
Returns
- string
Text for this item