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
- HandlerBase.cs
- UnsafeNativeMethods.cs
- DESCryptoServiceProvider.cs
- OdbcCommand.cs
- ConfigPathUtility.cs
- GroupPartitionExpr.cs
- ObjectStateEntry.cs
- EdmComplexPropertyAttribute.cs
- AccessViolationException.cs
- WebBodyFormatMessageProperty.cs
- NamespaceDecl.cs
- InputScopeAttribute.cs
- MexBindingBindingCollectionElement.cs
- AccessText.cs
- AcceleratedTokenAuthenticator.cs
- BindableAttribute.cs
- TextTreeInsertUndoUnit.cs
- ExtenderControl.cs
- DataKey.cs
- Section.cs
- DbXmlEnabledProviderManifest.cs
- FixedSOMFixedBlock.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- OleDbMetaDataFactory.cs
- MailMessageEventArgs.cs
- CallbackException.cs
- ExpressionNormalizer.cs
- HtmlTextBoxAdapter.cs
- XpsFixedDocumentReaderWriter.cs
- TreeViewImageGenerator.cs
- CoreSwitches.cs
- ContextInformation.cs
- XmlQueryStaticData.cs
- IconConverter.cs
- XmlProcessingInstruction.cs
- TreeNodeCollection.cs
- WSDualHttpBinding.cs
- ChannelSinkStacks.cs
- WebColorConverter.cs
- Size.cs
- RewritingValidator.cs
- MarkupExtensionParser.cs
- XsltFunctions.cs
- SiteMembershipCondition.cs
- _IPv4Address.cs
- CounterCreationDataCollection.cs
- CompiledQueryCacheEntry.cs
- XmlReflectionImporter.cs
- RequestCacheManager.cs
- GroupStyle.cs
- Page.cs
- ItemAutomationPeer.cs
- XmlNavigatorFilter.cs
- Attributes.cs
- TypeInfo.cs
- columnmapfactory.cs
- DataMemberListEditor.cs
- Scripts.cs
- SmiSettersStream.cs
- input.cs
- RolePrincipal.cs
- AxHost.cs
- DataDesignUtil.cs
- Metadata.cs
- ChtmlPageAdapter.cs
- EasingQuaternionKeyFrame.cs
- Mutex.cs
- DesignerVerbCollection.cs
- IsolatedStorageFile.cs
- SecurityKeyIdentifier.cs
- RepeatButtonAutomationPeer.cs
- COAUTHINFO.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ControlIdConverter.cs
- ToolbarAUtomationPeer.cs
- XamlWriter.cs
- WorkingDirectoryEditor.cs
- ThreadPool.cs
- DesignerAdRotatorAdapter.cs
- SelectionProviderWrapper.cs
- TypeToken.cs
- FixedPageStructure.cs
- AuthenticationConfig.cs
- TypeElementCollection.cs
- RadioButton.cs
- DeclaredTypeValidatorAttribute.cs
- DependencyProperty.cs
- VersionedStream.cs
- Label.cs
- FontStretchConverter.cs
- PersistStreamTypeWrapper.cs
- RoleExceptions.cs
- IgnoreFileBuildProvider.cs
- EnvelopedPkcs7.cs
- CharacterMetrics.cs
- PartialClassGenerationTask.cs
- HuffModule.cs
- SrgsRule.cs
- PrimaryKeyTypeConverter.cs
- EventWaitHandle.cs