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
- PngBitmapDecoder.cs
- AspProxy.cs
- WebPermission.cs
- SqlFileStream.cs
- ViewKeyConstraint.cs
- ScriptDescriptor.cs
- RadioButton.cs
- SqlConnectionString.cs
- NumericPagerField.cs
- XmlDesigner.cs
- Cursor.cs
- CompilationLock.cs
- Span.cs
- WebPartHeaderCloseVerb.cs
- ToolTipAutomationPeer.cs
- FixedSOMFixedBlock.cs
- RawStylusInput.cs
- InputDevice.cs
- ShaderEffect.cs
- RecognizerStateChangedEventArgs.cs
- basecomparevalidator.cs
- XmlDataImplementation.cs
- Item.cs
- EditorAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- ComponentCollection.cs
- CodeDomSerializationProvider.cs
- HttpServerVarsCollection.cs
- TraceHwndHost.cs
- ColumnMap.cs
- HttpCacheVary.cs
- MasterPageParser.cs
- InputLanguageManager.cs
- CacheMemory.cs
- Utils.cs
- ControlCachePolicy.cs
- DocComment.cs
- SHA384.cs
- FormsAuthenticationUser.cs
- EndOfStreamException.cs
- CodeEventReferenceExpression.cs
- Pair.cs
- PeerServiceMessageContracts.cs
- EmissiveMaterial.cs
- SafeArchiveContext.cs
- Dictionary.cs
- SafeNativeMethods.cs
- GeometryGroup.cs
- WindowsFormsSynchronizationContext.cs
- DataGridPagerStyle.cs
- CompositeFontParser.cs
- ImmutableObjectAttribute.cs
- TreeNodeCollection.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- SpecialFolderEnumConverter.cs
- RequestQueue.cs
- CompilerResults.cs
- SecurityTokenResolver.cs
- FileDialog.cs
- Region.cs
- XmlSchemaComplexContent.cs
- EventSetter.cs
- ControlPager.cs
- BaseProcessProtocolHandler.cs
- EditorZone.cs
- FormViewDesigner.cs
- RectAnimationUsingKeyFrames.cs
- SqlCrossApplyToCrossJoin.cs
- FilteredSchemaElementLookUpTable.cs
- Permission.cs
- TaskSchedulerException.cs
- ComplusEndpointConfigContainer.cs
- AxisAngleRotation3D.cs
- LinkLabel.cs
- TextTreeTextNode.cs
- CopyNamespacesAction.cs
- XMLUtil.cs
- DataTable.cs
- NamedPipeWorkerProcess.cs
- TreeNodeClickEventArgs.cs
- oledbmetadatacolumnnames.cs
- WebPartConnectionCollection.cs
- XmlStreamNodeWriter.cs
- TextEffectResolver.cs
- WebPartCancelEventArgs.cs
- JsonXmlDataContract.cs
- OracleMonthSpan.cs
- ColumnMapProcessor.cs
- TimeSpanFormat.cs
- DocumentApplicationState.cs
- CompositeCollectionView.cs
- RowsCopiedEventArgs.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TypeBuilder.cs
- DynamicContractTypeBuilder.cs
- GlobalizationSection.cs
- ChooseAction.cs
- COM2PropertyBuilderUITypeEditor.cs
- OperationContractGenerationContext.cs
- XmlSchemaSimpleContent.cs