Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SyntaxCheck.cs
- AppearanceEditorPart.cs
- AssemblySettingAttributes.cs
- SchemaNotation.cs
- UInt32Storage.cs
- FrameworkElement.cs
- WebPartDeleteVerb.cs
- ExtensionDataReader.cs
- ExpressionVisitor.cs
- ToolStripItemRenderEventArgs.cs
- SoapExtensionTypeElement.cs
- InstanceBehavior.cs
- AutomationPatternInfo.cs
- FontStyles.cs
- CursorConverter.cs
- BypassElement.cs
- IDQuery.cs
- CriticalExceptions.cs
- WebPartConnectionsEventArgs.cs
- AuthenticationModuleElement.cs
- SoapAttributeOverrides.cs
- StylusPlugin.cs
- GeometryDrawing.cs
- SortDescription.cs
- ToolStripKeyboardHandlingService.cs
- ContentDisposition.cs
- ScrollData.cs
- ArrayWithOffset.cs
- GetWinFXPath.cs
- CharEntityEncoderFallback.cs
- CategoryValueConverter.cs
- SuppressMergeCheckAttribute.cs
- FormViewInsertedEventArgs.cs
- SqlCacheDependency.cs
- SiteMembershipCondition.cs
- ColorAnimationUsingKeyFrames.cs
- CheckoutException.cs
- ISAPIWorkerRequest.cs
- CancelAsyncOperationRequest.cs
- ParseElement.cs
- ParameterElementCollection.cs
- BuildManager.cs
- ModuleConfigurationInfo.cs
- ScriptComponentDescriptor.cs
- InputScopeConverter.cs
- DefaultTextStore.cs
- SoapInteropTypes.cs
- ReliableSessionElement.cs
- WebBrowserDocumentCompletedEventHandler.cs
- Propagator.Evaluator.cs
- CorrelationService.cs
- XmlCharCheckingReader.cs
- DragDrop.cs
- BindingsCollection.cs
- Application.cs
- Rotation3DAnimationUsingKeyFrames.cs
- Itemizer.cs
- CounterCreationData.cs
- SqlClientFactory.cs
- DefaultAsyncDataDispatcher.cs
- XmlBaseWriter.cs
- TraceSection.cs
- _AcceptOverlappedAsyncResult.cs
- ValueConversionAttribute.cs
- DeclaredTypeElementCollection.cs
- RegexCharClass.cs
- Debugger.cs
- ImageAttributes.cs
- ArrayElementGridEntry.cs
- ProviderConnectionPointCollection.cs
- SqlGatherConsumedAliases.cs
- OdbcRowUpdatingEvent.cs
- SortableBindingList.cs
- XMLSyntaxException.cs
- DATA_BLOB.cs
- SQLInt32.cs
- TagElement.cs
- SQLUtility.cs
- Util.cs
- UserUseLicenseDictionaryLoader.cs
- ToolStripGrip.cs
- DateTimeValueSerializer.cs
- TableHeaderCell.cs
- DBDataPermission.cs
- ObsoleteAttribute.cs
- PortCache.cs
- WebSysDescriptionAttribute.cs
- RoutingUtilities.cs
- DataPagerFieldCollection.cs
- XMLUtil.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- ExpressionParser.cs
- XmlParserContext.cs
- Rect.cs
- DataBindingCollection.cs
- localization.cs
- MeasurementDCInfo.cs
- SqlFacetAttribute.cs
- ObjectQuery.cs
- TypeInformation.cs