Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Misc / ImageListUtils.cs / 1305376 / ImageListUtils.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartDisplayMode.cs
- NullRuntimeConfig.cs
- HtmlHistory.cs
- NullableDecimalSumAggregationOperator.cs
- PointLight.cs
- HistoryEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- DataObjectCopyingEventArgs.cs
- ApplicationTrust.cs
- TreeNodeBindingCollection.cs
- InputLanguageEventArgs.cs
- TimeManager.cs
- IdentifierCollection.cs
- TCPClient.cs
- Validator.cs
- DesignerOptionService.cs
- ObjectView.cs
- DesignerAttribute.cs
- SmiXetterAccessMap.cs
- WindowsImpersonationContext.cs
- WriteableBitmap.cs
- CryptoHelper.cs
- GCHandleCookieTable.cs
- DrawingServices.cs
- Translator.cs
- AuthenticateEventArgs.cs
- BoolExpr.cs
- ObjectListCommandsPage.cs
- ContainerControl.cs
- LinqExpressionNormalizer.cs
- ChannelManagerHelpers.cs
- FixedSOMLineRanges.cs
- ScrollPattern.cs
- LogReserveAndAppendState.cs
- NetMsmqBindingCollectionElement.cs
- SecurityMode.cs
- DataControlLinkButton.cs
- _AcceptOverlappedAsyncResult.cs
- URLIdentityPermission.cs
- FixedPageAutomationPeer.cs
- XmlWellformedWriter.cs
- GridViewUpdatedEventArgs.cs
- MenuItemStyleCollectionEditor.cs
- TemplateKey.cs
- Context.cs
- Point4D.cs
- EntityProviderFactory.cs
- lengthconverter.cs
- XmlNode.cs
- SoapTypeAttribute.cs
- Int64KeyFrameCollection.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ByteStack.cs
- Geometry3D.cs
- SqlClientPermission.cs
- RepeaterCommandEventArgs.cs
- FormViewPageEventArgs.cs
- BufferedGraphicsManager.cs
- DataControlLinkButton.cs
- XmlDomTextWriter.cs
- FontDialog.cs
- HttpResponse.cs
- WindowsFormsHelpers.cs
- Rectangle.cs
- Gdiplus.cs
- PerformanceCounter.cs
- ContainerActivationHelper.cs
- NotifyParentPropertyAttribute.cs
- StorageMappingItemLoader.cs
- NotFiniteNumberException.cs
- ObjectConverter.cs
- _Connection.cs
- DocumentSequenceHighlightLayer.cs
- EventRouteFactory.cs
- SemaphoreFullException.cs
- ResourcesBuildProvider.cs
- SQLBoolean.cs
- BitConverter.cs
- DesignerAutoFormatCollection.cs
- PolicyLevel.cs
- FontNamesConverter.cs
- ConnectionManagementElement.cs
- ComplexBindingPropertiesAttribute.cs
- AdPostCacheSubstitution.cs
- RubberbandSelector.cs
- Duration.cs
- ParameterToken.cs
- AssemblyAttributesGoHere.cs
- VirtualDirectoryMapping.cs
- XamlTypeMapperSchemaContext.cs
- RbTree.cs
- PageParser.cs
- DataGridViewSelectedCellCollection.cs
- InternalControlCollection.cs
- AccessViolationException.cs
- MyContact.cs
- GridViewColumnCollection.cs
- SuppressMessageAttribute.cs
- DataGridViewRowHeaderCell.cs
- DispatcherEventArgs.cs