System.ComponentModel.Design.Serialization.StatementContext Class

Provides a location into which statements can be serialized. This class cannot be inherited.

See Also: StatementContext Members


public sealed class StatementContext


Usually, statements are serialized into the statement collection that is on the context stack. You can modify this behavior by creating a statement context and calling the erload:System.ComponentModel.Design.Serialization.ObjectStatementCollection.Populate method with a collection of objects whose statements you want stored in the statement table. As each object is serialized in the CodeDomSerializerBase.SerializeToExpression(IDesignerSerializationManager, object) method, it has its contents placed in the statement table and saved in the context. If you push this object on the stack, it is your responsibility to integrate the statements added to it into your own collection of statements.


Namespace: System.ComponentModel.Design.Serialization
Assembly: System.Design (in System.Design.dll)
Assembly Versions: