Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- /* */ 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
- PropertyChangeTracker.cs
- SQLBinary.cs
- EventPrivateKey.cs
- PersistenceException.cs
- GrammarBuilderRuleRef.cs
- CommonObjectSecurity.cs
- DocumentDesigner.cs
- DbProviderFactory.cs
- TableLayoutSettings.cs
- ProcessModelInfo.cs
- ToolboxItem.cs
- SqlInternalConnection.cs
- LocalFileSettingsProvider.cs
- NativeMethodsOther.cs
- OracleConnectionFactory.cs
- XDeferredAxisSource.cs
- RandomNumberGenerator.cs
- ClientSideProviderDescription.cs
- TextModifier.cs
- X509Chain.cs
- ExecutionContext.cs
- ConfigXmlElement.cs
- Variant.cs
- HebrewNumber.cs
- XamlPathDataSerializer.cs
- DataRowCollection.cs
- SqlNodeAnnotations.cs
- SchemaCollectionPreprocessor.cs
- SafeProcessHandle.cs
- HttpProtocolImporter.cs
- XPathNodeList.cs
- WebPartMovingEventArgs.cs
- ValuePattern.cs
- DbException.cs
- TemplatingOptionsDialog.cs
- GB18030Encoding.cs
- ConfigurationValidatorBase.cs
- DataControlFieldCollection.cs
- WebSysDisplayNameAttribute.cs
- FlowDecision.cs
- Line.cs
- WindowInteropHelper.cs
- NameValuePermission.cs
- CharacterBufferReference.cs
- Context.cs
- Property.cs
- DocumentViewerBaseAutomationPeer.cs
- DragStartedEventArgs.cs
- QueryCacheEntry.cs
- PersonalizationProvider.cs
- DrawingBrush.cs
- EncryptedData.cs
- DirectionalAction.cs
- FormattedText.cs
- ContentValidator.cs
- Vector3DIndependentAnimationStorage.cs
- TaskHelper.cs
- pingexception.cs
- DockPatternIdentifiers.cs
- HopperCache.cs
- SuspendDesigner.cs
- HwndAppCommandInputProvider.cs
- DetailsViewModeEventArgs.cs
- KeyValuePairs.cs
- InvalidDataContractException.cs
- NeutralResourcesLanguageAttribute.cs
- EntityContainer.cs
- CompilerLocalReference.cs
- ForeignKeyConstraint.cs
- DependentList.cs
- MailHeaderInfo.cs
- XmlSequenceWriter.cs
- SystemInfo.cs
- TagPrefixCollection.cs
- OracleCommandSet.cs
- DataContractSerializerElement.cs
- Preprocessor.cs
- PrimaryKeyTypeConverter.cs
- HttpListenerException.cs
- SignatureResourcePool.cs
- OutKeywords.cs
- CodeDOMUtility.cs
- SpeakProgressEventArgs.cs
- TextAction.cs
- DataReaderContainer.cs
- StateManagedCollection.cs
- PartialTrustVisibleAssembliesSection.cs
- TransactionScope.cs
- SqlDataSourceStatusEventArgs.cs
- HttpGetProtocolReflector.cs
- RequestResizeEvent.cs
- BitmapEffectDrawing.cs
- DataGridViewImageColumn.cs
- COM2TypeInfoProcessor.cs
- TreeNodeCollection.cs
- DataGridViewTopRowAccessibleObject.cs
- ModelFactory.cs
- SettingsBase.cs
- ApplicationGesture.cs
- OleDbWrapper.cs