Exemple #1
0
        /// <summary>
        /// Adds the <see cref="PropertiesListElement"/> to the current layou or reuses the previous one. Used to inject properties.
        /// </summary>
        /// <param name="name">The property label name.</param>
        /// <param name="tooltip">The property label tooltip text.</param>
        /// <returns>The element.</returns>
        public PropertiesListElement AddPropertyItem(string name, string tooltip = null)
        {
            PropertiesListElement element = AddPropertyItem();

            element.OnAddProperty(name, tooltip);
            return(element);
        }
Exemple #2
0
        /// <summary>
        /// Adds the <see cref="PropertiesListElement"/> to the current layou or reuses the previous one. Used to inject properties.
        /// </summary>
        /// <param name="label">The property label.</param>
        /// <param name="tooltip">The property label tooltip text.</param>
        /// <returns>The element.</returns>
        public PropertiesListElement AddPropertyItem(PropertyNameLabel label, string tooltip = null)
        {
            if (label == null)
            {
                throw new ArgumentNullException();
            }

            PropertiesListElement element = AddPropertyItem();

            element.OnAddProperty(label, tooltip);
            return(element);
        }