Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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// 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
- RemotingSurrogateSelector.cs
- CodeDirectoryCompiler.cs
- TriggerAction.cs
- CollectionBuilder.cs
- NativeMethods.cs
- XmlDataFileEditor.cs
- DynamicFilterExpression.cs
- BrowserTree.cs
- ConfigurationValues.cs
- ProcessHostServerConfig.cs
- PrintEvent.cs
- DataGridTextColumn.cs
- COM2TypeInfoProcessor.cs
- ParserOptions.cs
- WindowsTokenRoleProvider.cs
- CopyCodeAction.cs
- TreeIterator.cs
- RSAOAEPKeyExchangeFormatter.cs
- XNodeValidator.cs
- FontUnit.cs
- BooleanSwitch.cs
- Resources.Designer.cs
- RankException.cs
- EnterpriseServicesHelper.cs
- PlaceHolder.cs
- TimelineClockCollection.cs
- ProviderConnectionPoint.cs
- TextFormatterImp.cs
- ConfigXmlElement.cs
- CodeNamespaceImport.cs
- TextWriter.cs
- SafeNativeMethodsCLR.cs
- ObjectStorage.cs
- ChannelCacheSettings.cs
- LabelLiteral.cs
- DataGridViewCellStateChangedEventArgs.cs
- ToolStripContentPanelRenderEventArgs.cs
- ConnectivityStatus.cs
- ToolStripSeparator.cs
- Style.cs
- ExecutionContext.cs
- SchemaDeclBase.cs
- StringSorter.cs
- FileLevelControlBuilderAttribute.cs
- StructuredTypeEmitter.cs
- TextRangeSerialization.cs
- StringAnimationBase.cs
- ContentOperations.cs
- _ChunkParse.cs
- PageCatalogPartDesigner.cs
- SourceFilter.cs
- QuinticEase.cs
- ColumnMapVisitor.cs
- SerializationException.cs
- ListenerElementsCollection.cs
- TimeIntervalCollection.cs
- AdornerDecorator.cs
- MultipartContentParser.cs
- CallbackCorrelationInitializer.cs
- NullReferenceException.cs
- FastEncoder.cs
- LinkClickEvent.cs
- TransactionFlowBindingElementImporter.cs
- TextTreeNode.cs
- PropagatorResult.cs
- counter.cs
- RouteItem.cs
- JoinGraph.cs
- MultipleViewProviderWrapper.cs
- KeyboardDevice.cs
- ClientConfigPaths.cs
- DataRecordInfo.cs
- DiscoveryEndpoint.cs
- AttributeAction.cs
- URLAttribute.cs
- LoadedOrUnloadedOperation.cs
- UICuesEvent.cs
- XmlSchemaType.cs
- WeakReferenceList.cs
- GPRECT.cs
- JsonMessageEncoderFactory.cs
- CacheModeConverter.cs
- SelectionWordBreaker.cs
- TypeSource.cs
- PageCodeDomTreeGenerator.cs
- KeyedHashAlgorithm.cs
- FilterableAttribute.cs
- TcpChannelListener.cs
- NewExpression.cs
- SystemUdpStatistics.cs
- MetadataArtifactLoaderCompositeResource.cs
- SimpleHandlerBuildProvider.cs
- cookiecontainer.cs
- ParserExtension.cs
- SqlDataSourceConfigureSelectPanel.cs
- FlowLayoutSettings.cs
- ModuleElement.cs
- ContextStack.cs
- UnsafeNativeMethods.cs
- Parser.cs