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
- TableItemStyle.cs
- EdmMember.cs
- ToolStripHighContrastRenderer.cs
- PersianCalendar.cs
- FixedPage.cs
- ToolStripItemEventArgs.cs
- PngBitmapEncoder.cs
- SetterBaseCollection.cs
- GifBitmapDecoder.cs
- InlineObject.cs
- FactoryGenerator.cs
- XmlDataSourceView.cs
- PassportPrincipal.cs
- InputManager.cs
- HyperLinkColumn.cs
- DoubleCollectionConverter.cs
- PhonemeConverter.cs
- TextureBrush.cs
- ContextMenuService.cs
- InsufficientMemoryException.cs
- ContentOperations.cs
- TypeUnloadedException.cs
- EndpointDiscoveryBehavior.cs
- TagNameToTypeMapper.cs
- StreamAsIStream.cs
- WinInetCache.cs
- DeviceSpecificDesigner.cs
- ByteStorage.cs
- IResourceProvider.cs
- UIElementParagraph.cs
- WebProxyScriptElement.cs
- PersonalizationAdministration.cs
- StructuralCache.cs
- RegexCharClass.cs
- XmlSerializerNamespaces.cs
- GPRECT.cs
- DataListGeneralPage.cs
- ActiveXContainer.cs
- GradientStop.cs
- ImmutableObjectAttribute.cs
- _ProxyRegBlob.cs
- RequiredAttributeAttribute.cs
- TransformGroup.cs
- _NegotiateClient.cs
- Object.cs
- ReferenceSchema.cs
- PasswordRecovery.cs
- TextStore.cs
- COAUTHINFO.cs
- DataGridViewRow.cs
- DNS.cs
- XmlSchemaSimpleContent.cs
- OracleTimeSpan.cs
- ReferenceSchema.cs
- LinkConverter.cs
- FacetDescriptionElement.cs
- MenuCommands.cs
- XmlSchemaObjectCollection.cs
- ClientSettingsProvider.cs
- SubstitutionDesigner.cs
- ArgumentException.cs
- SerializationObjectManager.cs
- DataServiceQueryException.cs
- DocumentViewerHelper.cs
- FirstQueryOperator.cs
- Size3D.cs
- login.cs
- Select.cs
- PageParser.cs
- SpellerHighlightLayer.cs
- ColumnHeaderConverter.cs
- WhereQueryOperator.cs
- DesignerActionTextItem.cs
- LoginStatusDesigner.cs
- TreeNodeStyle.cs
- HttpListenerException.cs
- CodeSnippetCompileUnit.cs
- Repeater.cs
- InvalidOperationException.cs
- SerialPort.cs
- EnumValAlphaComparer.cs
- SafeCryptoHandles.cs
- DoubleAnimation.cs
- SecurityPolicyVersion.cs
- CodeMemberField.cs
- ChildrenQuery.cs
- CodeRegionDirective.cs
- NamespaceImport.cs
- ConnectionPoint.cs
- EntityDataSourceSelectedEventArgs.cs
- entityreference_tresulttype.cs
- securitycriticaldata.cs
- XmlMemberMapping.cs
- SiteMapDataSource.cs
- OdbcTransaction.cs
- LinqDataSourceStatusEventArgs.cs
- DoubleCollectionConverter.cs
- XsdBuildProvider.cs
- ObjectQuery.cs
- PropertyIDSet.cs