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
- EventWaitHandleSecurity.cs
- RMPermissions.cs
- FrugalList.cs
- NonBatchDirectoryCompiler.cs
- VirtualizingPanel.cs
- StrongNameIdentityPermission.cs
- DriveNotFoundException.cs
- HasCopySemanticsAttribute.cs
- ListenerConstants.cs
- EventDescriptorCollection.cs
- SQLMoney.cs
- DateTimeOffset.cs
- _NetRes.cs
- SmtpCommands.cs
- DBAsyncResult.cs
- CurrentChangedEventManager.cs
- BooleanAnimationUsingKeyFrames.cs
- SmtpReplyReader.cs
- LayoutEvent.cs
- BitmapSizeOptions.cs
- TemplateInstanceAttribute.cs
- ArglessEventHandlerProxy.cs
- NetworkAddressChange.cs
- ObservableDictionary.cs
- SafeRightsManagementHandle.cs
- PropertySegmentSerializationProvider.cs
- FamilyTypefaceCollection.cs
- XamlGridLengthSerializer.cs
- IssuedSecurityTokenProvider.cs
- OrderablePartitioner.cs
- ColorContext.cs
- ClipboardProcessor.cs
- SparseMemoryStream.cs
- LinearKeyFrames.cs
- HttpCacheVary.cs
- IisTraceWebEventProvider.cs
- CachedFontFamily.cs
- Model3D.cs
- DbDataReader.cs
- HighContrastHelper.cs
- FixedSOMPage.cs
- XPathDocument.cs
- localization.cs
- PageRanges.cs
- ACL.cs
- GlyphShapingProperties.cs
- PageStatePersister.cs
- DataGridViewSortCompareEventArgs.cs
- X509ChainPolicy.cs
- Rotation3DAnimationBase.cs
- AttributeXamlType.cs
- DataGridViewTextBoxColumn.cs
- GiveFeedbackEventArgs.cs
- FileSystemEventArgs.cs
- XmlSchemaFacet.cs
- ColumnResult.cs
- LambdaCompiler.ControlFlow.cs
- ReferencedCollectionType.cs
- XmlnsPrefixAttribute.cs
- Query.cs
- CopyNodeSetAction.cs
- DataMemberAttribute.cs
- MediaContext.cs
- DataExpression.cs
- CheckBox.cs
- BufferedWebEventProvider.cs
- SizeAnimationBase.cs
- PeerInvitationResponse.cs
- TableLayoutPanelCellPosition.cs
- HashHelper.cs
- RuntimeWrappedException.cs
- InputDevice.cs
- LogExtentCollection.cs
- SecurityElement.cs
- LineSegment.cs
- SequenceNumber.cs
- XmlBoundElement.cs
- ApplicationId.cs
- ListViewTableCell.cs
- CngKeyCreationParameters.cs
- DtrList.cs
- FieldBuilder.cs
- ConfigurationSectionGroup.cs
- XsdBuilder.cs
- DispatchProxy.cs
- ProcessThreadDesigner.cs
- SecurityCapabilities.cs
- FilteredDataSetHelper.cs
- HttpCookieCollection.cs
- BooleanProjectedSlot.cs
- PanelContainerDesigner.cs
- objectquery_tresulttype.cs
- PointAnimationBase.cs
- ComplexTypeEmitter.cs
- MembershipValidatePasswordEventArgs.cs
- AppModelKnownContentFactory.cs
- BitmapEditor.cs
- AnimationClockResource.cs
- Point.cs
- Imaging.cs