Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Design / PaintValueEventArgs.cs / 1305376 / PaintValueEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Drawing.Design { using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; ////// /// This object is passed to UITypeEditor.PaintValue. /// It contains all the information needed for the editor to /// paint the given value, including the Rectangle in which /// the drawing should be done, and the Graphics object with which the drawing /// should be done. /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class PaintValueEventArgs : EventArgs { private readonly ITypeDescriptorContext context; private readonly object valueToPaint; ////// /// The graphics object with which the drawing should be done. /// private readonly Graphics graphics; ////// /// The rectangle outlining the area in which the painting should be /// done. /// private readonly Rectangle bounds; ////// /// Creates a new PaintValueEventArgs with the given parameters. /// public PaintValueEventArgs(ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds) { this.context = context; this.valueToPaint = value; this.graphics = graphics; if (graphics == null) throw new ArgumentNullException("graphics"); this.bounds = bounds; } ////// /// The rectangle outlining the area in which the painting should be /// done. /// public Rectangle Bounds { get { return bounds; } } ////// /// ITypeDescriptorContext object for additional information about the context this value appears in. /// public ITypeDescriptorContext Context { get { return context; } } ////// /// Graphics object with which painting should be done. /// public Graphics Graphics { get { return graphics; } } ////// /// The value to paint. /// public object Value { get { return valueToPaint; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Drawing.Design { using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; ////// /// This object is passed to UITypeEditor.PaintValue. /// It contains all the information needed for the editor to /// paint the given value, including the Rectangle in which /// the drawing should be done, and the Graphics object with which the drawing /// should be done. /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class PaintValueEventArgs : EventArgs { private readonly ITypeDescriptorContext context; private readonly object valueToPaint; ////// /// The graphics object with which the drawing should be done. /// private readonly Graphics graphics; ////// /// The rectangle outlining the area in which the painting should be /// done. /// private readonly Rectangle bounds; ////// /// Creates a new PaintValueEventArgs with the given parameters. /// public PaintValueEventArgs(ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds) { this.context = context; this.valueToPaint = value; this.graphics = graphics; if (graphics == null) throw new ArgumentNullException("graphics"); this.bounds = bounds; } ////// /// The rectangle outlining the area in which the painting should be /// done. /// public Rectangle Bounds { get { return bounds; } } ////// /// ITypeDescriptorContext object for additional information about the context this value appears in. /// public ITypeDescriptorContext Context { get { return context; } } ////// /// Graphics object with which painting should be done. /// public Graphics Graphics { get { return graphics; } } ////// /// The value to paint. /// public object Value { get { return valueToPaint; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResetableIterator.cs
- RuleDefinitions.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- AuthenticationServiceManager.cs
- TemplateManager.cs
- CookieProtection.cs
- QueryValue.cs
- ContainerParaClient.cs
- CallSiteHelpers.cs
- DigestTraceRecordHelper.cs
- SafeWaitHandle.cs
- RemoteHelper.cs
- CodePrimitiveExpression.cs
- CheckBox.cs
- ModelPerspective.cs
- SqlBuffer.cs
- TrackPoint.cs
- DataBinder.cs
- TextTabProperties.cs
- JapaneseLunisolarCalendar.cs
- RelatedView.cs
- SizeConverter.cs
- objectresult_tresulttype.cs
- ResizeGrip.cs
- HandleRef.cs
- LayoutSettings.cs
- ToolboxBitmapAttribute.cs
- WorkflowRuntime.cs
- StreamInfo.cs
- SerializationObjectManager.cs
- TemplateNameScope.cs
- KnownTypeAttribute.cs
- SessionSwitchEventArgs.cs
- TriggerCollection.cs
- EventProviderWriter.cs
- InternalControlCollection.cs
- cookieexception.cs
- StrongNameMembershipCondition.cs
- Attributes.cs
- SingleAnimation.cs
- EntityDataSourceStatementEditor.cs
- OrderPreservingPipeliningMergeHelper.cs
- NameSpaceExtractor.cs
- RootProfilePropertySettingsCollection.cs
- ProxySimple.cs
- PowerModeChangedEventArgs.cs
- Stopwatch.cs
- DCSafeHandle.cs
- StandardOleMarshalObject.cs
- PackageRelationshipCollection.cs
- BindableTemplateBuilder.cs
- DetailsViewPageEventArgs.cs
- CatalogPartChrome.cs
- SendContent.cs
- RootBuilder.cs
- PocoPropertyAccessorStrategy.cs
- DirectionalLight.cs
- XmlDataSource.cs
- TemplateInstanceAttribute.cs
- CompositeDuplexBindingElement.cs
- IgnoreDataMemberAttribute.cs
- FileDialog.cs
- FormViewUpdatedEventArgs.cs
- PrtCap_Reader.cs
- SourceSwitch.cs
- HtmlGenericControl.cs
- DocumentPage.cs
- PkcsUtils.cs
- GeneralTransform3DTo2DTo3D.cs
- StylusButton.cs
- DataGridHyperlinkColumn.cs
- UserInitiatedNavigationPermission.cs
- BinaryObjectReader.cs
- RelationshipEndMember.cs
- CompiledQuery.cs
- ThreadAbortException.cs
- DataServices.cs
- Int32RectConverter.cs
- EntitySetRetriever.cs
- WebReferenceCollection.cs
- XmlAttribute.cs
- ToolboxComponentsCreatingEventArgs.cs
- Brush.cs
- InputLanguage.cs
- ContextMenuStrip.cs
- _IPv6Address.cs
- ImageSource.cs
- CustomPopupPlacement.cs
- CookielessHelper.cs
- WebPartConnectionsCloseVerb.cs
- DynamicActivity.cs
- CatalogPart.cs
- MimeFormatter.cs
- Send.cs
- HostingEnvironmentException.cs
- XmlSchemaComplexContentExtension.cs
- _AutoWebProxyScriptHelper.cs
- HtmlInputCheckBox.cs
- SizeChangedInfo.cs
- EncryptedData.cs