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
- PeerNameRegistration.cs
- ValueSerializer.cs
- ServiceEndpointAssociationProvider.cs
- ConnectionManagementElement.cs
- BufferedWebEventProvider.cs
- ScriptControl.cs
- PointAnimationClockResource.cs
- CodeArrayIndexerExpression.cs
- TopClause.cs
- DatasetMethodGenerator.cs
- BlurEffect.cs
- SchemaComplexType.cs
- SatelliteContractVersionAttribute.cs
- DBSqlParser.cs
- Label.cs
- TransportContext.cs
- ParameterModifier.cs
- NavigationExpr.cs
- PersonalizablePropertyEntry.cs
- AggregateNode.cs
- ObjectIDGenerator.cs
- DataGridItemCollection.cs
- OLEDB_Util.cs
- MetabaseReader.cs
- BehaviorEditorPart.cs
- AccessorTable.cs
- TopClause.cs
- Logging.cs
- PasswordTextContainer.cs
- MethodImplAttribute.cs
- DefaultEventAttribute.cs
- MulticastOption.cs
- VirtualizingStackPanel.cs
- PolyQuadraticBezierSegment.cs
- OdbcEnvironmentHandle.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ProcessModuleCollection.cs
- HighlightComponent.cs
- MissingMethodException.cs
- FileDataSourceCache.cs
- WindowsSecurityTokenAuthenticator.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- Membership.cs
- CodeVariableDeclarationStatement.cs
- ShortcutKeysEditor.cs
- BindingEntityInfo.cs
- CapabilitiesAssignment.cs
- DBDataPermissionAttribute.cs
- Double.cs
- WebPartZoneBase.cs
- BitmapDownload.cs
- DetailsViewCommandEventArgs.cs
- SetterTriggerConditionValueConverter.cs
- ValuePattern.cs
- SqlVersion.cs
- EngineSite.cs
- SByteConverter.cs
- PerformanceCounterPermissionEntryCollection.cs
- Identifier.cs
- ContentPosition.cs
- ScopedKnownTypes.cs
- DateTimeSerializationSection.cs
- AssemblyCache.cs
- BufferBuilder.cs
- FormViewCommandEventArgs.cs
- Hex.cs
- PageSetupDialog.cs
- HtmlTitle.cs
- Wildcard.cs
- StylusTip.cs
- TitleStyle.cs
- ObjectFullSpanRewriter.cs
- TripleDES.cs
- PasswordValidationException.cs
- RayHitTestParameters.cs
- KeyboardEventArgs.cs
- DictionaryEntry.cs
- AlignmentYValidation.cs
- WebPartConnectionsConnectVerb.cs
- LowerCaseStringConverter.cs
- HyperLinkField.cs
- CodeAccessPermission.cs
- PenContext.cs
- ToolBarTray.cs
- Multiply.cs
- DataTableReader.cs
- PropertyItemInternal.cs
- TimeoutValidationAttribute.cs
- TimeSpanMinutesConverter.cs
- SqlUserDefinedTypeAttribute.cs
- ImageListUtils.cs
- DataContractJsonSerializer.cs
- ExtendLockAsyncResult.cs
- OracleConnectionString.cs
- CodeTypeDelegate.cs
- DrawingImage.cs
- GridEntryCollection.cs
- webeventbuffer.cs
- AttributeUsageAttribute.cs
- TransformGroup.cs