ARCed.Scintilla.Design.ScintillaDesigner.InitializeNewComponent C# (CSharp) Метод

InitializeNewComponent() публичный метод

public InitializeNewComponent ( IDictionary defaultValues ) : void
defaultValues IDictionary
Результат void
        public override void InitializeNewComponent(IDictionary defaultValues)
        {
            base.InitializeNewComponent(defaultValues);

            // By default, the VS control designer will set a control's Text property to the
            // name of the control. This the accepted method of clearing the Text property
            // when the control is dropped on the form.
            PropertyDescriptor descriptor = TypeDescriptor.GetProperties(base.Component)["Text"];
            if (descriptor != null && descriptor.PropertyType == typeof(String) && !descriptor.IsReadOnly && descriptor.IsBrowsable)
                descriptor.SetValue(base.Component, String.Empty);
        }
ScintillaDesigner