Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ContentPosition.cs
- CfgSemanticTag.cs
- ModuleConfigurationInfo.cs
- EntityDataSourceWrapper.cs
- LinqDataSourceStatusEventArgs.cs
- AdornerDecorator.cs
- Nodes.cs
- HttpCookie.cs
- WeakEventTable.cs
- InvokeMethod.cs
- RequestNavigateEventArgs.cs
- AtomEntry.cs
- InvokeBinder.cs
- ServiceRoute.cs
- ConstructorArgumentAttribute.cs
- RtfToken.cs
- HMACRIPEMD160.cs
- TimeZone.cs
- RuntimeTransactionHandle.cs
- ManipulationDeltaEventArgs.cs
- ObjectCloneHelper.cs
- DataGridTablesFactory.cs
- LambdaCompiler.Unary.cs
- SettingsProperty.cs
- LogFlushAsyncResult.cs
- DecimalConverter.cs
- ResourceWriter.cs
- ToolBarOverflowPanel.cs
- DrawingImage.cs
- DisplayNameAttribute.cs
- AutoResetEvent.cs
- QilSortKey.cs
- RunClient.cs
- TemplateControlCodeDomTreeGenerator.cs
- compensatingcollection.cs
- ConfigUtil.cs
- DBPropSet.cs
- CompilerWrapper.cs
- CommonProperties.cs
- XmlDictionaryReaderQuotas.cs
- EntityReference.cs
- SortedSetDebugView.cs
- ContainerUtilities.cs
- FtpWebRequest.cs
- PathSegment.cs
- PasswordRecoveryDesigner.cs
- SamlAuthorityBinding.cs
- SqlUtil.cs
- RawStylusInputCustomDataList.cs
- TraceSection.cs
- EnumerableRowCollectionExtensions.cs
- ParamArrayAttribute.cs
- APCustomTypeDescriptor.cs
- VectorKeyFrameCollection.cs
- SemanticResolver.cs
- AspNetPartialTrustHelpers.cs
- IDispatchConstantAttribute.cs
- CalendarTable.cs
- File.cs
- AnchoredBlock.cs
- UpdateEventArgs.cs
- XmlIncludeAttribute.cs
- WebPartDeleteVerb.cs
- ExpandSegment.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Emitter.cs
- TextViewBase.cs
- FileDialog_Vista_Interop.cs
- BindingCollection.cs
- SetIterators.cs
- VectorCollection.cs
- WebServiceResponse.cs
- MarkupProperty.cs
- Rect.cs
- SerializationStore.cs
- StylusPointPropertyUnit.cs
- DocumentXPathNavigator.cs
- LoginCancelEventArgs.cs
- FileVersion.cs
- ExceptionUtil.cs
- ToolboxComponentsCreatingEventArgs.cs
- ToolBarDesigner.cs
- InstallerTypeAttribute.cs
- ComponentResourceManager.cs
- StatusBar.cs
- ToolStripItemCollection.cs
- GridViewPageEventArgs.cs
- ConnectionOrientedTransportManager.cs
- UpdatePanel.cs
- EntityWrapperFactory.cs
- BitmapEffectRenderDataResource.cs
- ServiceConfigurationTraceRecord.cs
- SrgsOneOf.cs
- Speller.cs
- contentDescriptor.cs
- FixedTextView.cs
- SoapSchemaImporter.cs
- EntityObject.cs
- Command.cs
- IPAddress.cs