/// <summary> /// This method is implementation-specific and not intended to be used from third-party /// code. /// </summary> /// <param name="item">This argument is implementation-specific and not intended to be used /// from third-party code.</param> /// <returns>The return value is implementation-specific and not intended to be used from /// third-party code.</returns> protected internal override Int32 AddInternal(Object item) { if (item is String s) { if (s == " ") { return(-1); } item = new TaskDialogButtonDescriptionRun(s); } return(base.AddInternal(item)); }
/// <summary> /// Adds a <see cref="TaskDialogButtonDescriptionRun"/> instance to this /// <see cref="TaskDialogButtonDescriptionElementCollection"/>. /// </summary> /// <param name="item">The <see cref="TaskDialogButtonDescriptionRun"/> to be added.</param> public void AddRun(TaskDialogButtonDescriptionRun item) { Add(item); }