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
- ExtendedProtectionPolicyElement.cs
- TypeExtensionSerializer.cs
- OrthographicCamera.cs
- SmiMetaData.cs
- SecurityCriticalDataForSet.cs
- AdapterUtil.cs
- TextBoxView.cs
- ReferentialConstraintRoleElement.cs
- DocumentGridPage.cs
- Vector.cs
- QuerySettings.cs
- SecurityContext.cs
- HttpChannelHelpers.cs
- FlowDocumentReaderAutomationPeer.cs
- WebEvents.cs
- codemethodreferenceexpression.cs
- Geometry3D.cs
- HierarchicalDataSourceDesigner.cs
- VarRemapper.cs
- PackagingUtilities.cs
- FormViewCommandEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- XmlWrappingWriter.cs
- TagMapInfo.cs
- AutomationProperties.cs
- RequestBringIntoViewEventArgs.cs
- SafeFileMappingHandle.cs
- ArrangedElementCollection.cs
- MessageOperationFormatter.cs
- XmlElementList.cs
- QueryMatcher.cs
- _OSSOCK.cs
- HuffModule.cs
- DoubleConverter.cs
- RequestCacheEntry.cs
- DefaultValueAttribute.cs
- SocketElement.cs
- Array.cs
- FontNamesConverter.cs
- DockPatternIdentifiers.cs
- LogicalExpressionEditor.cs
- EventDescriptor.cs
- WebAdminConfigurationHelper.cs
- RegexWorker.cs
- RecordBuilder.cs
- AssemblyCache.cs
- IndexOutOfRangeException.cs
- CqlErrorHelper.cs
- BitArray.cs
- Peer.cs
- FileCodeGroup.cs
- WebServiceErrorEvent.cs
- SymbolType.cs
- VSWCFServiceContractGenerator.cs
- PassportAuthenticationEventArgs.cs
- oledbmetadatacolumnnames.cs
- ResourceReferenceExpression.cs
- TypeInfo.cs
- CollectionBase.cs
- MILUtilities.cs
- NetMsmqBindingCollectionElement.cs
- StateBag.cs
- GraphicsPathIterator.cs
- WmiEventSink.cs
- ItemList.cs
- XmlDocumentSchema.cs
- ListBindableAttribute.cs
- __ConsoleStream.cs
- OdbcRowUpdatingEvent.cs
- NameValueConfigurationElement.cs
- MetadataCache.cs
- ContextMenuService.cs
- InkCanvasFeedbackAdorner.cs
- InternalConfigRoot.cs
- DataSourceSelectArguments.cs
- DependencyObject.cs
- ExpandCollapseProviderWrapper.cs
- SecurityKeyUsage.cs
- FixedSOMElement.cs
- DataPager.cs
- BrowserCapabilitiesFactory.cs
- QueuePropertyVariants.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DiscreteKeyFrames.cs
- PngBitmapEncoder.cs
- TypeUtils.cs
- TimeSpanParse.cs
- WebServiceClientProxyGenerator.cs
- SchemaElementDecl.cs
- X509RawDataKeyIdentifierClause.cs
- columnmapkeybuilder.cs
- TextEditorSpelling.cs
- MappingItemCollection.cs
- IChannel.cs
- ModelVisual3D.cs
- TranslateTransform3D.cs
- FormatVersion.cs
- HtmlUtf8RawTextWriter.cs
- XmlSchemaSimpleType.cs
- AnimationStorage.cs