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
- StringValidatorAttribute.cs
- TransformPattern.cs
- PaintValueEventArgs.cs
- FullTrustAssembliesSection.cs
- TdsEnums.cs
- QueryOperationResponseOfT.cs
- UrlRoutingHandler.cs
- PropertyDescriptor.cs
- SmiMetaDataProperty.cs
- HostedTransportConfigurationManager.cs
- Events.cs
- ScrollPatternIdentifiers.cs
- Facet.cs
- EventLogPermissionEntryCollection.cs
- ServiceObjectContainer.cs
- PlainXmlDeserializer.cs
- Currency.cs
- TypeConverterHelper.cs
- RsaSecurityTokenAuthenticator.cs
- SerializationEventsCache.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SafeEventLogWriteHandle.cs
- GlyphShapingProperties.cs
- FixedSOMImage.cs
- HttpRuntimeSection.cs
- ActivityPreviewDesigner.cs
- GPRECTF.cs
- ToolboxComponentsCreatingEventArgs.cs
- SessionStateSection.cs
- ArrayExtension.cs
- LogExtentCollection.cs
- Validator.cs
- StylusShape.cs
- CellRelation.cs
- WindowsEditBoxRange.cs
- ExclusiveTcpListener.cs
- Queue.cs
- SmiMetaDataProperty.cs
- CodeParameterDeclarationExpressionCollection.cs
- PropertyGrid.cs
- WebBodyFormatMessageProperty.cs
- SimpleMailWebEventProvider.cs
- CqlIdentifiers.cs
- ActiveXMessageFormatter.cs
- PenCursorManager.cs
- ImportContext.cs
- HttpContext.cs
- ValueProviderWrapper.cs
- XsdBuildProvider.cs
- ProfileServiceManager.cs
- Sequence.cs
- NativeCppClassAttribute.cs
- PrincipalPermission.cs
- WebDisplayNameAttribute.cs
- FrameworkContentElement.cs
- HtmlTernaryTree.cs
- BitmapEffect.cs
- MsmqIntegrationReceiveParameters.cs
- DataTableReader.cs
- AxisAngleRotation3D.cs
- TraceContextRecord.cs
- ViewKeyConstraint.cs
- dtdvalidator.cs
- SqlErrorCollection.cs
- DataGridTableStyleMappingNameEditor.cs
- TextTreeText.cs
- Environment.cs
- BodyGlyph.cs
- TokenBasedSet.cs
- SecondaryIndexDefinition.cs
- MessageSmuggler.cs
- InputEventArgs.cs
- CodeNamespaceImport.cs
- IdentifierService.cs
- RemotingConfiguration.cs
- ParameterCollection.cs
- XmlSubtreeReader.cs
- DrawingGroupDrawingContext.cs
- LogReserveAndAppendState.cs
- XmlMemberMapping.cs
- CodeCatchClauseCollection.cs
- EventLogPermissionEntry.cs
- ListChangedEventArgs.cs
- RemotingConfiguration.cs
- BufferedStream2.cs
- DrawingDrawingContext.cs
- CompilationSection.cs
- DurationConverter.cs
- _ShellExpression.cs
- CodeNamespace.cs
- VersionUtil.cs
- nulltextcontainer.cs
- TransformerConfigurationWizardBase.cs
- ComponentSerializationService.cs
- UnsafeNetInfoNativeMethods.cs
- GridViewItemAutomationPeer.cs
- SoapIncludeAttribute.cs
- ClientUIRequest.cs
- EdmScalarPropertyAttribute.cs
- TaiwanCalendar.cs