Code:
/ DotNET / DotNET / 8.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
- ApplicationSettingsBase.cs
- DBDataPermission.cs
- MessageQueue.cs
- HatchBrush.cs
- HTTPNotFoundHandler.cs
- WebEventCodes.cs
- ClientTargetSection.cs
- EpmContentDeSerializerBase.cs
- TypedElement.cs
- DataGridHeaderBorder.cs
- GenericArgumentsUpdater.cs
- HttpRuntimeSection.cs
- WriteableBitmap.cs
- CodePageEncoding.cs
- ReadWriteControlDesigner.cs
- FixedHyperLink.cs
- _NetworkingPerfCounters.cs
- WsdlImporterElement.cs
- CollectionEditorDialog.cs
- HttpServerChannel.cs
- MatrixTransform3D.cs
- QilList.cs
- CompositeFontFamily.cs
- DrawingContext.cs
- xamlnodes.cs
- TreeView.cs
- CqlWriter.cs
- EntityDataSourceWrapper.cs
- AttributeEmitter.cs
- DiagnosticsConfigurationHandler.cs
- AlphabeticalEnumConverter.cs
- CompilationAssemblyInstallComponent.cs
- CodeAssignStatement.cs
- UIElement3D.cs
- WinEventTracker.cs
- XmlArrayAttribute.cs
- BamlLocalizableResourceKey.cs
- FixedDocumentPaginator.cs
- PermissionSetTriple.cs
- RtfToken.cs
- UriWriter.cs
- DataSpaceManager.cs
- InvalidateEvent.cs
- WorkerRequest.cs
- TranslateTransform3D.cs
- DataControlField.cs
- DataGridToolTip.cs
- XamlValidatingReader.cs
- DataGridCell.cs
- EndpointAddress.cs
- HtmlValidatorAdapter.cs
- TypeConverterHelper.cs
- ToolTip.cs
- HwndPanningFeedback.cs
- RecordsAffectedEventArgs.cs
- UnaryNode.cs
- XmlCharType.cs
- GZipObjectSerializer.cs
- CallbackDebugBehavior.cs
- ListSourceHelper.cs
- CapabilitiesSection.cs
- RelationshipEntry.cs
- Selection.cs
- CompilationSection.cs
- SafeNativeMethods.cs
- SamlAuthenticationStatement.cs
- SqlDataSourceCache.cs
- DoubleCollectionValueSerializer.cs
- CssClassPropertyAttribute.cs
- TypeGeneratedEventArgs.cs
- ContentFilePart.cs
- WindowsFormsSynchronizationContext.cs
- StackSpiller.Bindings.cs
- WebException.cs
- UrlMapping.cs
- ConfigXmlText.cs
- PerspectiveCamera.cs
- SingletonInstanceContextProvider.cs
- UIElementParagraph.cs
- ClientData.cs
- EdgeProfileValidation.cs
- DropShadowBitmapEffect.cs
- BrowserTree.cs
- BuildManager.cs
- DataGridViewHitTestInfo.cs
- RegistryKey.cs
- DecimalAnimationUsingKeyFrames.cs
- MouseButton.cs
- SqlCommand.cs
- PaginationProgressEventArgs.cs
- HttpFileCollectionBase.cs
- ErrorHandler.cs
- ClientSession.cs
- ContextDataSourceView.cs
- WorkflowInstance.cs
- Privilege.cs
- FirstMatchCodeGroup.cs
- WebControlToolBoxItem.cs
- RequestCacheManager.cs
- BitmapEncoder.cs