Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Design / PaintValueEventArgs.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StreamReader.cs
- HierarchicalDataSourceControl.cs
- SmiRequestExecutor.cs
- SqlTopReducer.cs
- mactripleDES.cs
- WebExceptionStatus.cs
- XamlTemplateSerializer.cs
- UserValidatedEventArgs.cs
- DataListCommandEventArgs.cs
- HtmlHead.cs
- ColorContext.cs
- Rule.cs
- WsdlImporterElementCollection.cs
- Point3DCollectionValueSerializer.cs
- DropShadowBitmapEffect.cs
- _ChunkParse.cs
- TableChangeProcessor.cs
- InputMethodStateChangeEventArgs.cs
- XamlDebuggerXmlReader.cs
- LayoutEvent.cs
- SqlNodeAnnotation.cs
- BooleanToVisibilityConverter.cs
- SplitContainer.cs
- ProxyHwnd.cs
- CompilationPass2Task.cs
- TextElementEnumerator.cs
- Bold.cs
- SimpleHandlerBuildProvider.cs
- SessionIDManager.cs
- Typography.cs
- TargetControlTypeCache.cs
- PrimitiveDataContract.cs
- ConstantProjectedSlot.cs
- ContextQuery.cs
- QueryStatement.cs
- GroupBoxRenderer.cs
- Package.cs
- AdRotator.cs
- BoolExpr.cs
- MergeLocalizationDirectives.cs
- ConstructorBuilder.cs
- NameNode.cs
- FragmentQueryKB.cs
- ArgumentException.cs
- CheckedListBox.cs
- X509Certificate2Collection.cs
- CodeAssignStatement.cs
- DataGridViewAccessibleObject.cs
- RedirectionProxy.cs
- AppSettingsExpressionBuilder.cs
- PageFunction.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PathSegment.cs
- Logging.cs
- IpcClientChannel.cs
- XmlHierarchicalEnumerable.cs
- PixelFormats.cs
- AssemblyEvidenceFactory.cs
- VisualBrush.cs
- ExportFileRequest.cs
- LogRecordSequence.cs
- ADMembershipProvider.cs
- BufferedGraphics.cs
- ExceptionWrapper.cs
- Vector3DAnimationBase.cs
- ProfilePropertySettingsCollection.cs
- SmiXetterAccessMap.cs
- HtmlTextBoxAdapter.cs
- FontUnitConverter.cs
- CalendarDay.cs
- InvalidDataException.cs
- EntityClassGenerator.cs
- ILGen.cs
- ScrollChrome.cs
- BindingCollection.cs
- GridViewUpdateEventArgs.cs
- DatasetMethodGenerator.cs
- AttributeParameterInfo.cs
- RunInstallerAttribute.cs
- RuntimeConfigLKG.cs
- ItemContainerGenerator.cs
- UnionCodeGroup.cs
- SBCSCodePageEncoding.cs
- MailAddress.cs
- EditorPartCollection.cs
- ACL.cs
- WindowsListViewItem.cs
- TextDocumentView.cs
- TextSpanModifier.cs
- MarginsConverter.cs
- CodeObject.cs
- ProjectionQueryOptionExpression.cs
- WebControlParameterProxy.cs
- DataViewSettingCollection.cs
- QilChoice.cs
- XmlReflectionImporter.cs
- SystemKeyConverter.cs
- Package.cs
- TypeReference.cs
- RSAPKCS1SignatureDeformatter.cs