Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CommonUI / System / Drawing / Design / PaintValueEventArgs.cs / 1 / 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
- Context.cs
- ConfigXmlWhitespace.cs
- WindowClosedEventArgs.cs
- VectorValueSerializer.cs
- AsyncResult.cs
- TypeDescriptor.cs
- GridItemPattern.cs
- DataAdapter.cs
- Compensate.cs
- PermissionListSet.cs
- XmlSchemaSimpleContentExtension.cs
- MobileControlsSectionHandler.cs
- ComplexTypeEmitter.cs
- PathData.cs
- RolePrincipal.cs
- BypassElementCollection.cs
- SqlCachedBuffer.cs
- AgileSafeNativeMemoryHandle.cs
- ResourcesBuildProvider.cs
- CommonProperties.cs
- DataBinding.cs
- MultiBinding.cs
- PassportPrincipal.cs
- MaterialGroup.cs
- DataProviderNameConverter.cs
- ReflectPropertyDescriptor.cs
- DataSourceCache.cs
- KerberosRequestorSecurityToken.cs
- InvalidFilterCriteriaException.cs
- SignerInfo.cs
- EventLog.cs
- TableSectionStyle.cs
- Int16AnimationUsingKeyFrames.cs
- NavigationService.cs
- TextParentUndoUnit.cs
- SingleConverter.cs
- DbXmlEnabledProviderManifest.cs
- MailDefinition.cs
- FixedSOMLineRanges.cs
- HtmlTable.cs
- Page.cs
- Aggregates.cs
- TypedTableBaseExtensions.cs
- ConsumerConnectionPointCollection.cs
- TypographyProperties.cs
- TypeLibConverter.cs
- PaperSize.cs
- VersionPair.cs
- CapabilitiesPattern.cs
- StaticResourceExtension.cs
- HelpHtmlBuilder.cs
- CatalogPartChrome.cs
- SizeF.cs
- RubberbandSelector.cs
- LayoutInformation.cs
- FieldNameLookup.cs
- QueryCacheKey.cs
- UniqueIdentifierService.cs
- CredentialCache.cs
- WebConfigurationHost.cs
- StatusBar.cs
- RequestNavigateEventArgs.cs
- CodeTypeReference.cs
- QilFunction.cs
- SplitterCancelEvent.cs
- XPathAncestorQuery.cs
- ResourceSet.cs
- ForeignKeyConstraint.cs
- ClientCultureInfo.cs
- SkipStoryboardToFill.cs
- ZipIOExtraField.cs
- DataTableTypeConverter.cs
- XsltInput.cs
- CompleteWizardStep.cs
- ConfigurationManagerHelperFactory.cs
- TransformGroup.cs
- XMLSyntaxException.cs
- PropertyItem.cs
- SpecialNameAttribute.cs
- SuppressIldasmAttribute.cs
- Facet.cs
- HttpAsyncResult.cs
- FieldNameLookup.cs
- precedingquery.cs
- ProfileModule.cs
- HitTestParameters.cs
- ImageMap.cs
- RepeaterItemCollection.cs
- FillErrorEventArgs.cs
- SymbolUsageManager.cs
- EngineSiteSapi.cs
- XmlLanguage.cs
- XmlSignatureManifest.cs
- HijriCalendar.cs
- FontUnit.cs
- DataListCommandEventArgs.cs
- XMLSyntaxException.cs
- AnimationStorage.cs
- RepeaterItem.cs
- PropertyToken.cs