Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Misc / ImageListUtils.cs / 1 / 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
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SoundPlayer.cs
- ValueSerializerAttribute.cs
- ResourceSet.cs
- RedistVersionInfo.cs
- SendKeys.cs
- PasswordTextContainer.cs
- ComplusEndpointConfigContainer.cs
- XPathNode.cs
- TakeOrSkipQueryOperator.cs
- StringPropertyBuilder.cs
- PointAnimationUsingPath.cs
- StylusButtonEventArgs.cs
- Funcletizer.cs
- FontNamesConverter.cs
- DiscoveryClientRequestChannel.cs
- ProxyFragment.cs
- MimePart.cs
- BaseTransportHeaders.cs
- XsdDateTime.cs
- ScaleTransform3D.cs
- _CommandStream.cs
- ControlEvent.cs
- Viewport3DAutomationPeer.cs
- ipaddressinformationcollection.cs
- PropertyFilterAttribute.cs
- WebServiceParameterData.cs
- LiteralTextContainerControlBuilder.cs
- CorrelationActionMessageFilter.cs
- SharedStream.cs
- TableDetailsCollection.cs
- CollectionChangeEventArgs.cs
- WpfXamlMember.cs
- XPathAncestorQuery.cs
- ValidatingPropertiesEventArgs.cs
- DbProviderServices.cs
- SrgsRuleRef.cs
- TdsRecordBufferSetter.cs
- ClientRuntimeConfig.cs
- EpmTargetTree.cs
- PersonalizationProvider.cs
- SessionSwitchEventArgs.cs
- SymbolTable.cs
- TextSpanModifier.cs
- DocobjHost.cs
- CharConverter.cs
- followingsibling.cs
- BrowserInteropHelper.cs
- XmlQueryType.cs
- QueryCursorEventArgs.cs
- DesignTimeTemplateParser.cs
- GeneralTransform2DTo3DTo2D.cs
- SystemDropShadowChrome.cs
- MenuItemAutomationPeer.cs
- CodeIdentifier.cs
- TransactionManager.cs
- FixedPageStructure.cs
- BitSet.cs
- MDIClient.cs
- CLSCompliantAttribute.cs
- GrowingArray.cs
- shaperfactory.cs
- BulletedListEventArgs.cs
- SoapInteropTypes.cs
- CompressedStack.cs
- SqlDataSourceCommandParser.cs
- GridViewRowCollection.cs
- ObjectConverter.cs
- StylusPointPropertyInfo.cs
- SelectionHighlightInfo.cs
- TdsParameterSetter.cs
- SelectedCellsCollection.cs
- RequestQueryProcessor.cs
- CapabilitiesState.cs
- SystemIcmpV4Statistics.cs
- ColumnTypeConverter.cs
- BulletedListDesigner.cs
- Component.cs
- GridViewPageEventArgs.cs
- SqlParameterizer.cs
- XamlWrapperReaders.cs
- WebPart.cs
- CopyOnWriteList.cs
- WinEventQueueItem.cs
- StringHandle.cs
- BrowserDefinition.cs
- XamlToRtfParser.cs
- InternalConfigRoot.cs
- GenericRootAutomationPeer.cs
- ManipulationStartedEventArgs.cs
- BooleanStorage.cs
- WeakEventManager.cs
- DeviceContext2.cs
- DbException.cs
- TransportConfigurationTypeElement.cs
- InOutArgumentConverter.cs
- TypeNameConverter.cs
- SQLDateTime.cs
- TableLayoutSettings.cs
- FacetValues.cs
- GridSplitter.cs