Files
2026-06-04 11:42:34 +02:00

135 lines
6.8 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.ComponentModel.Design
{
/// <summary>Provides an interface for managing designer transactions and components.</summary>
// Token: 0x02000048 RID: 72
[ComVisible(true)]
public interface IDesignerHost : IServiceContainer, IServiceProvider
{
/// <summary>Occurs when this designer is activated.</summary>
// Token: 0x14000008 RID: 8
// (add) Token: 0x060002EA RID: 746
// (remove) Token: 0x060002EB RID: 747
event EventHandler Activated;
/// <summary>Occurs when this designer is deactivated.</summary>
// Token: 0x14000009 RID: 9
// (add) Token: 0x060002EC RID: 748
// (remove) Token: 0x060002ED RID: 749
event EventHandler Deactivated;
/// <summary>Occurs when this designer completes loading its document.</summary>
// Token: 0x1400000A RID: 10
// (add) Token: 0x060002EE RID: 750
// (remove) Token: 0x060002EF RID: 751
event EventHandler LoadComplete;
/// <summary>Adds an event handler for the <see cref="E:System.ComponentModel.Design.IDesignerHost.TransactionClosed" /> event.</summary>
// Token: 0x1400000B RID: 11
// (add) Token: 0x060002F0 RID: 752
// (remove) Token: 0x060002F1 RID: 753
event DesignerTransactionCloseEventHandler TransactionClosed;
/// <summary>Adds an event handler for the <see cref="E:System.ComponentModel.Design.IDesignerHost.TransactionClosing" /> event.</summary>
// Token: 0x1400000C RID: 12
// (add) Token: 0x060002F2 RID: 754
// (remove) Token: 0x060002F3 RID: 755
event DesignerTransactionCloseEventHandler TransactionClosing;
/// <summary>Adds an event handler for the <see cref="E:System.ComponentModel.Design.IDesignerHost.TransactionOpened" /> event.</summary>
// Token: 0x1400000D RID: 13
// (add) Token: 0x060002F4 RID: 756
// (remove) Token: 0x060002F5 RID: 757
event EventHandler TransactionOpened;
/// <summary>Adds an event handler for the <see cref="E:System.ComponentModel.Design.IDesignerHost.TransactionOpening" /> event.</summary>
// Token: 0x1400000E RID: 14
// (add) Token: 0x060002F6 RID: 758
// (remove) Token: 0x060002F7 RID: 759
event EventHandler TransactionOpening;
/// <summary>Gets the container for this designer host.</summary>
/// <returns>The <see cref="T:System.ComponentModel.IContainer" /> for this host.</returns>
// Token: 0x170000D2 RID: 210
// (get) Token: 0x060002F8 RID: 760
IContainer Container { get; }
/// <summary>Gets a value indicating whether the designer host is currently in a transaction.</summary>
/// <returns>true if a transaction is in progress; otherwise, false.</returns>
// Token: 0x170000D3 RID: 211
// (get) Token: 0x060002F9 RID: 761
bool InTransaction { get; }
/// <summary>Gets a value indicating whether the designer host is currently loading the document.</summary>
/// <returns>true if the designer host is currently loading the document; otherwise, false.</returns>
// Token: 0x170000D4 RID: 212
// (get) Token: 0x060002FA RID: 762
bool Loading { get; }
/// <summary>Gets the instance of the base class used as the root component for the current design.</summary>
/// <returns>The instance of the root component class.</returns>
// Token: 0x170000D5 RID: 213
// (get) Token: 0x060002FB RID: 763
IComponent RootComponent { get; }
/// <summary>Gets the fully qualified name of the class being designed.</summary>
/// <returns>The fully qualified name of the base component class.</returns>
// Token: 0x170000D6 RID: 214
// (get) Token: 0x060002FC RID: 764
string RootComponentClassName { get; }
/// <summary>Gets the description of the current transaction.</summary>
/// <returns>A description of the current transaction.</returns>
// Token: 0x170000D7 RID: 215
// (get) Token: 0x060002FD RID: 765
string TransactionDescription { get; }
/// <summary>Activates the designer that this host is hosting.</summary>
// Token: 0x060002FE RID: 766
void Activate();
/// <summary>Creates a component of the specified type and adds it to the design document.</summary>
/// <returns>The newly created component.</returns>
/// <param name="componentClass">The type of the component to create. </param>
// Token: 0x060002FF RID: 767
IComponent CreateComponent(Type componentClass);
/// <summary>Creates a component of the specified type and name, and adds it to the design document.</summary>
/// <returns>The newly created component.</returns>
/// <param name="componentClass">The type of the component to create. </param>
/// <param name="name">The name for the component. </param>
// Token: 0x06000300 RID: 768
IComponent CreateComponent(Type componentClass, string name);
/// <summary>Creates a <see cref="T:System.ComponentModel.Design.DesignerTransaction" /> that can encapsulate event sequences to improve performance and enable undo and redo support functionality.</summary>
/// <returns>A new instance of <see cref="T:System.ComponentModel.Design.DesignerTransaction" />. When you complete the steps in your transaction, you should call <see cref="M:System.ComponentModel.Design.DesignerTransaction.Commit" /> on this object.</returns>
// Token: 0x06000301 RID: 769
DesignerTransaction CreateTransaction();
/// <summary>Creates a <see cref="T:System.ComponentModel.Design.DesignerTransaction" /> that can encapsulate event sequences to improve performance and enable undo and redo support functionality, using the specified transaction description.</summary>
/// <returns>A new <see cref="T:System.ComponentModel.Design.DesignerTransaction" />. When you have completed the steps in your transaction, you should call <see cref="M:System.ComponentModel.Design.DesignerTransaction.Commit" /> on this object.</returns>
/// <param name="description">A title or description for the newly created transaction. </param>
// Token: 0x06000302 RID: 770
DesignerTransaction CreateTransaction(string description);
/// <summary>Destroys the specified component and removes it from the designer container.</summary>
/// <param name="component">The component to destroy. </param>
// Token: 0x06000303 RID: 771
void DestroyComponent(IComponent component);
/// <summary>Gets the designer instance that contains the specified component.</summary>
/// <returns>An <see cref="T:System.ComponentModel.Design.IDesigner" />, or null if there is no designer for the specified component.</returns>
/// <param name="component">The <see cref="T:System.ComponentModel.IComponent" /> to retrieve the designer for. </param>
// Token: 0x06000304 RID: 772
IDesigner GetDesigner(IComponent component);
/// <summary>Gets an instance of the specified, fully qualified type name.</summary>
/// <returns>The type object for the specified type name, or null if the type cannot be found.</returns>
/// <param name="typeName">The name of the type to load. </param>
// Token: 0x06000305 RID: 773
Type GetType(string typeName);
}
}