Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / MeasureItemEvent.cs / 1 / MeasureItemEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; ////// /// This event is sent by controls such as the ListBox or ComboBox that need users /// to tell them how large a given item is to be. /// public class MeasureItemEventArgs : EventArgs { private int itemHeight; private int itemWidth; private int index; private readonly System.Drawing.Graphics graphics; ////// /// public MeasureItemEventArgs(Graphics graphics, int index, int itemHeight) { this.graphics = graphics; this.index = index; this.itemHeight = itemHeight; this.itemWidth = 0; } ///[To be supplied.] ////// /// public MeasureItemEventArgs(Graphics graphics, int index) { this.graphics = graphics; this.index = index; this.itemHeight = 0; this.itemWidth = 0; } ///[To be supplied.] ////// /// A Graphics object to measure relative to. /// public System.Drawing.Graphics Graphics { get { return graphics; } } ////// /// The index of item for which the height/width is needed. /// public int Index { get { return index; } } ////// /// Where the recipient of the event should put the height of the /// item specified by the index. /// public int ItemHeight { get { return itemHeight; } set { itemHeight = value; } } ////// /// Where the recipient of the event should put the width of the /// item specified by the index. /// public int ItemWidth { get { return itemWidth; } set { itemWidth = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; ////// /// This event is sent by controls such as the ListBox or ComboBox that need users /// to tell them how large a given item is to be. /// public class MeasureItemEventArgs : EventArgs { private int itemHeight; private int itemWidth; private int index; private readonly System.Drawing.Graphics graphics; ////// /// public MeasureItemEventArgs(Graphics graphics, int index, int itemHeight) { this.graphics = graphics; this.index = index; this.itemHeight = itemHeight; this.itemWidth = 0; } ///[To be supplied.] ////// /// public MeasureItemEventArgs(Graphics graphics, int index) { this.graphics = graphics; this.index = index; this.itemHeight = 0; this.itemWidth = 0; } ///[To be supplied.] ////// /// A Graphics object to measure relative to. /// public System.Drawing.Graphics Graphics { get { return graphics; } } ////// /// The index of item for which the height/width is needed. /// public int Index { get { return index; } } ////// /// Where the recipient of the event should put the height of the /// item specified by the index. /// public int ItemHeight { get { return itemHeight; } set { itemHeight = value; } } ////// /// Where the recipient of the event should put the width of the /// item specified by the index. /// public int ItemWidth { get { return itemWidth; } set { itemWidth = value; } } } } // 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
- followingquery.cs
- HttpMethodConstraint.cs
- RNGCryptoServiceProvider.cs
- EntityViewGenerationConstants.cs
- HeaderPanel.cs
- NetSectionGroup.cs
- EntityDataSourceDesigner.cs
- SQLInt32Storage.cs
- SQLBinaryStorage.cs
- SafeNativeMethods.cs
- ToolStripLocationCancelEventArgs.cs
- MasterPageBuildProvider.cs
- ThreadInterruptedException.cs
- VirtualPath.cs
- Publisher.cs
- TextServicesLoader.cs
- DbRetry.cs
- OrderByQueryOptionExpression.cs
- WebRequest.cs
- SendOperation.cs
- WhitespaceRuleReader.cs
- Pen.cs
- AuthenticationManager.cs
- OdbcFactory.cs
- AppDomain.cs
- MethodRental.cs
- ApplicationServiceManager.cs
- typedescriptorpermission.cs
- QueryStringParameter.cs
- BindingCompleteEventArgs.cs
- SerializerDescriptor.cs
- StrongNameUtility.cs
- EdgeProfileValidation.cs
- XmlNode.cs
- Decorator.cs
- connectionpool.cs
- SQLGuidStorage.cs
- StreamInfo.cs
- StoryFragments.cs
- SamlAdvice.cs
- StorageInfo.cs
- ErrorTableItemStyle.cs
- SqlDependency.cs
- IPAddress.cs
- RepeatButton.cs
- DesigntimeLicenseContext.cs
- dbenumerator.cs
- DefaultTextStoreTextComposition.cs
- IndentedWriter.cs
- ColumnHeader.cs
- SafeReversePInvokeHandle.cs
- ScriptRef.cs
- Vertex.cs
- Point3DConverter.cs
- SoapIncludeAttribute.cs
- FrameworkContentElement.cs
- X509CertificateValidator.cs
- AppDomainUnloadedException.cs
- FirewallWrapper.cs
- Compiler.cs
- ProfessionalColors.cs
- ProcessHost.cs
- SQLString.cs
- WebPartsPersonalization.cs
- AuthenticationManager.cs
- _NetRes.cs
- XappLauncher.cs
- XdrBuilder.cs
- PtsContext.cs
- XmlElementAttributes.cs
- LocalizeDesigner.cs
- NameValuePair.cs
- LinkButton.cs
- TextElementEnumerator.cs
- WorkItem.cs
- ProcessModelSection.cs
- ConfigurationSectionCollection.cs
- FilterableAttribute.cs
- ToolStripEditorManager.cs
- ZipIOFileItemStream.cs
- ValueUtilsSmi.cs
- EncryptedPackageFilter.cs
- CommonProperties.cs
- RegistrySecurity.cs
- XmlILStorageConverter.cs
- HttpListener.cs
- CopyOfAction.cs
- ScriptResourceInfo.cs
- ScriptResourceInfo.cs
- ExtendedProtectionPolicyElement.cs
- AsmxEndpointPickerExtension.cs
- XmlByteStreamWriter.cs
- ProtocolImporter.cs
- PrimarySelectionGlyph.cs
- Mappings.cs
- BitmapEffectCollection.cs
- GridViewPageEventArgs.cs
- NamespaceTable.cs
- DisplayMemberTemplateSelector.cs
- XmlNodeList.cs