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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OledbConnectionStringbuilder.cs
- X509Certificate.cs
- Documentation.cs
- ComponentCollection.cs
- ScriptingRoleServiceSection.cs
- SqlInternalConnection.cs
- ProcessHostFactoryHelper.cs
- ConfigurationStrings.cs
- IEnumerable.cs
- ObjectRef.cs
- SequenceFullException.cs
- ProcessRequestArgs.cs
- RouteValueDictionary.cs
- RegularExpressionValidator.cs
- DataGridSortCommandEventArgs.cs
- ListBoxItem.cs
- XmlArrayItemAttributes.cs
- ProviderSettings.cs
- ConstructorBuilder.cs
- SqlBuffer.cs
- WsdlInspector.cs
- ConnectionProviderAttribute.cs
- SocketElement.cs
- ProfilePropertyMetadata.cs
- LayoutEngine.cs
- DoubleAnimationBase.cs
- SortExpressionBuilder.cs
- StreamingContext.cs
- OracleCommandBuilder.cs
- PenThreadPool.cs
- TransformConverter.cs
- TextElementEnumerator.cs
- RotateTransform.cs
- HtmlInputPassword.cs
- LocalizedNameDescriptionPair.cs
- PenThreadPool.cs
- ConversionContext.cs
- JournalNavigationScope.cs
- MatrixTransform3D.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- StrokeCollectionConverter.cs
- SizeConverter.cs
- ConnectionsZone.cs
- XmlWriter.cs
- Query.cs
- GlyphsSerializer.cs
- NamespaceTable.cs
- TransformerInfoCollection.cs
- RSAProtectedConfigurationProvider.cs
- ZoneLinkButton.cs
- AssemblyAttributes.cs
- RemoteAsymmetricSignatureFormatter.cs
- StorageEndPropertyMapping.cs
- SqlIdentifier.cs
- StateBag.cs
- SQLDateTime.cs
- EntityDataSourceSelectedEventArgs.cs
- KeyValuePairs.cs
- TreeNodeStyle.cs
- AsyncOperationContext.cs
- CommandConverter.cs
- FrameSecurityDescriptor.cs
- OdbcDataReader.cs
- LockCookie.cs
- ColumnResizeAdorner.cs
- initElementDictionary.cs
- Group.cs
- OracleRowUpdatingEventArgs.cs
- BitmapEffectGroup.cs
- RtfControls.cs
- UniqueIdentifierService.cs
- CompositeCollection.cs
- DataSourceXmlTextReader.cs
- IncrementalHitTester.cs
- DataServiceContext.cs
- FormViewInsertedEventArgs.cs
- RegistryHandle.cs
- SoapSchemaMember.cs
- BitmapEffectDrawingContextWalker.cs
- CodeAttributeArgument.cs
- IriParsingElement.cs
- SmtpFailedRecipientException.cs
- RemoteWebConfigurationHostServer.cs
- EditorPartChrome.cs
- ReadonlyMessageFilter.cs
- CommandDevice.cs
- ColumnHeaderConverter.cs
- SecureConversationServiceElement.cs
- WebZone.cs
- WebPartDisplayMode.cs
- FilteredAttributeCollection.cs
- BaseDataList.cs
- _ShellExpression.cs
- Content.cs
- DataMisalignedException.cs
- SmiXetterAccessMap.cs
- ProtocolsConfigurationEntry.cs
- LookupBindingPropertiesAttribute.cs
- SerializationInfoEnumerator.cs
- FrameworkPropertyMetadata.cs