/// <summary>
        /// Event handler for the above text box
        /// </summary>
        void txtBox_EnterPressed(object sender, Autodesk.Revit.UI.Events.TextBoxEnterPressedEventArgs e)
        {
            // Cast sender to TextBox to retrieve text value
            TextBox textBox = sender as TextBox;

            TaskDialog.Show("TextBox Input", "This is what you typed in: " + textBox.Value.ToString());
        }
Beispiel #2
0
        void ProcessText2(object sender, Autodesk.Revit.UI.Events.TextBoxEnterPressedEventArgs args)
        {
            // cast sender as TextBox to retrieve text value
            TextBox textBox = sender as TextBox;
            string  strText = textBox.Value as string;

            Shared.hSpacing = strText;
        }