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
- XmlnsDictionary.cs
- Solver.cs
- CertificateElement.cs
- NotifyParentPropertyAttribute.cs
- FlowDecisionLabelFeature.cs
- PolicyStatement.cs
- SvcMapFile.cs
- Compiler.cs
- InputBinder.cs
- XmlSchemaAny.cs
- SignatureHelper.cs
- HtmlFormParameterReader.cs
- HebrewCalendar.cs
- TraceInternal.cs
- HitTestParameters.cs
- TransformedBitmap.cs
- SpeechEvent.cs
- LinkedResource.cs
- IDispatchConstantAttribute.cs
- ReadWriteSpinLock.cs
- EventArgs.cs
- EventLogPermission.cs
- LogEntrySerializationException.cs
- EntityContainer.cs
- ScriptingSectionGroup.cs
- Serializer.cs
- ThemeDirectoryCompiler.cs
- SelectingProviderEventArgs.cs
- Crc32.cs
- PersonalizablePropertyEntry.cs
- BatchServiceHost.cs
- SafeWaitHandle.cs
- EntityContainerEmitter.cs
- XmlDataSourceView.cs
- InvokeHandlers.cs
- EventLogPermissionEntry.cs
- DateTimeFormatInfo.cs
- DataGridViewLinkColumn.cs
- ColumnMapVisitor.cs
- WindowsListView.cs
- _UncName.cs
- VBIdentifierTrimConverter.cs
- DashStyles.cs
- BamlTreeMap.cs
- IInstanceContextProvider.cs
- ProtectedConfigurationProviderCollection.cs
- TreeNodeCollection.cs
- MinimizableAttributeTypeConverter.cs
- HealthMonitoringSectionHelper.cs
- BehaviorService.cs
- DataView.cs
- XMLUtil.cs
- ConditionChanges.cs
- ItemDragEvent.cs
- ReadOnlyTernaryTree.cs
- SiteMapDesignerDataSourceView.cs
- Stream.cs
- StringPropertyBuilder.cs
- EdmToObjectNamespaceMap.cs
- UTF32Encoding.cs
- DataTableMapping.cs
- WinFormsSecurity.cs
- SelectionProviderWrapper.cs
- EntityDataSourceUtil.cs
- ClientData.cs
- DbgUtil.cs
- AnchorEditor.cs
- DataContractFormatAttribute.cs
- shaperfactory.cs
- IRCollection.cs
- TableLayoutCellPaintEventArgs.cs
- updateconfighost.cs
- ToolStripSplitButton.cs
- EmptyElement.cs
- StrongNameIdentityPermission.cs
- TextServicesContext.cs
- RemotingAttributes.cs
- ApplicationSettingsBase.cs
- FontCollection.cs
- OutputCacheProfileCollection.cs
- TypeSystem.cs
- SqlNotificationRequest.cs
- __ConsoleStream.cs
- DynamicResourceExtension.cs
- InfoCardArgumentException.cs
- AutoFocusStyle.xaml.cs
- ContentPathSegment.cs
- SQLSingle.cs
- NumericPagerField.cs
- BaseDataBoundControlDesigner.cs
- RenderData.cs
- StringFreezingAttribute.cs
- Translator.cs
- ArcSegment.cs
- MimeFormatter.cs
- SelectionManager.cs
- WebPartVerbsEventArgs.cs
- CompoundFileDeflateTransform.cs
- SettingsPropertyValueCollection.cs
- TextAction.cs