Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Host / DesignSurfaceEvent.cs / 1 / DesignSurfaceEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design {
///
///
/// Event handler for the DesignSurface event.
///
public delegate void DesignSurfaceEventHandler(object sender, DesignSurfaceEventArgs e);
///
///
/// Event args for the DesignSurface event.
///
public class DesignSurfaceEventArgs : EventArgs {
private DesignSurface _surface;
///
///
/// Creates a new DesignSurfaceEventArgs for the given design surface.
///
public DesignSurfaceEventArgs(DesignSurface surface) {
if (surface == null) {
throw new ArgumentNullException("surface");
}
_surface = surface;
}
///
///
/// The design surface passed into the constructor.
///
public DesignSurface Surface {
get {
return _surface;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerDataSourceView.cs
- TypeUtil.cs
- KeyedHashAlgorithm.cs
- EntryPointNotFoundException.cs
- LayoutExceptionEventArgs.cs
- DbExpressionBuilder.cs
- PointCollectionValueSerializer.cs
- Imaging.cs
- Stream.cs
- AutomationProperty.cs
- TreeViewCancelEvent.cs
- EndpointBehaviorElementCollection.cs
- TdsParserHelperClasses.cs
- GeneralTransform3DTo2DTo3D.cs
- ButtonFlatAdapter.cs
- TwoPhaseCommit.cs
- SettingsPropertyNotFoundException.cs
- SmiEventSink_DeferedProcessing.cs
- PngBitmapEncoder.cs
- DataListItemCollection.cs
- DataTable.cs
- HelpInfo.cs
- RouteValueDictionary.cs
- QuotedPairReader.cs
- ListViewGroup.cs
- UTF8Encoding.cs
- ShowExpandedMultiValueConverter.cs
- DataControlImageButton.cs
- ICspAsymmetricAlgorithm.cs
- PermissionSet.cs
- VoiceChangeEventArgs.cs
- ScriptResourceMapping.cs
- HtmlTableRowCollection.cs
- SByteConverter.cs
- remotingproxy.cs
- DataRowView.cs
- Base64Encoder.cs
- TextTreeNode.cs
- Button.cs
- PanelDesigner.cs
- CodeDomConfigurationHandler.cs
- WhitespaceRuleLookup.cs
- ZipFileInfoCollection.cs
- PropertyDescriptorComparer.cs
- IsolatedStorageException.cs
- MappingItemCollection.cs
- GlobalItem.cs
- Span.cs
- CompositionTarget.cs
- TypedTableBaseExtensions.cs
- listitem.cs
- SharedPersonalizationStateInfo.cs
- XMLSyntaxException.cs
- Table.cs
- CasesDictionary.cs
- QilSortKey.cs
- SystemResourceHost.cs
- ChangeInterceptorAttribute.cs
- Mappings.cs
- datacache.cs
- SafeFindHandle.cs
- ExtenderControl.cs
- LiteralTextContainerControlBuilder.cs
- GatewayDefinition.cs
- HttpResponseHeader.cs
- PointHitTestResult.cs
- WindowsScroll.cs
- DataBindingHandlerAttribute.cs
- SessionPageStatePersister.cs
- GiveFeedbackEventArgs.cs
- LocalBuilder.cs
- BatchServiceHost.cs
- ProcessModelSection.cs
- EventItfInfo.cs
- SdlChannelSink.cs
- ResponseStream.cs
- Model3DGroup.cs
- SafeWaitHandle.cs
- Enum.cs
- HashMembershipCondition.cs
- DesigntimeLicenseContext.cs
- AsmxEndpointPickerExtension.cs
- followingsibling.cs
- RectangleGeometry.cs
- WebRequestModuleElement.cs
- CqlBlock.cs
- HttpRuntime.cs
- Point3DAnimationBase.cs
- FilteredXmlReader.cs
- InternalControlCollection.cs
- VariantWrapper.cs
- DbModificationClause.cs
- NonClientArea.cs
- EventLogLink.cs
- InkCanvasInnerCanvas.cs
- HttpFileCollection.cs
- SafeNativeMethodsCLR.cs
- ZipQueryOperator.cs
- HttpContext.cs
- dsa.cs