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
- XmlSecureResolver.cs
- BitmapEffectOutputConnector.cs
- SmiContextFactory.cs
- EnumMember.cs
- ArgIterator.cs
- OleDbException.cs
- TimeSpanMinutesConverter.cs
- MailAddress.cs
- SizeChangedEventArgs.cs
- PlaceHolder.cs
- LinearGradientBrush.cs
- ValueTable.cs
- SchemaElementDecl.cs
- RsaSecurityTokenAuthenticator.cs
- BlurBitmapEffect.cs
- ConfigurationManagerInternal.cs
- ResetableIterator.cs
- KeyValueSerializer.cs
- SqlClientFactory.cs
- ParseChildrenAsPropertiesAttribute.cs
- CodeArrayCreateExpression.cs
- OleDbInfoMessageEvent.cs
- SiteMap.cs
- TargetConverter.cs
- ProfileModule.cs
- FtpWebResponse.cs
- HttpCapabilitiesSectionHandler.cs
- XmlSerializerSection.cs
- PinnedBufferMemoryStream.cs
- NotSupportedException.cs
- SHA1CryptoServiceProvider.cs
- ChtmlSelectionListAdapter.cs
- RedirectionProxy.cs
- PhysicalOps.cs
- FixedSOMContainer.cs
- CharStorage.cs
- PathSegment.cs
- WriteTimeStream.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DrawingContextWalker.cs
- AuthenticateEventArgs.cs
- BamlMapTable.cs
- CodeAttachEventStatement.cs
- ConfigurationValues.cs
- SqlProfileProvider.cs
- XmlSchemaExternal.cs
- PassportPrincipal.cs
- GeometryConverter.cs
- SHA256.cs
- ImageMetadata.cs
- ElementHost.cs
- Version.cs
- ProvidersHelper.cs
- TemplateControlCodeDomTreeGenerator.cs
- hresults.cs
- XmlSchemaSimpleTypeList.cs
- _DomainName.cs
- SiteMap.cs
- AuthenticationService.cs
- PostBackTrigger.cs
- DynamicUpdateCommand.cs
- FormCollection.cs
- TransactionContextManager.cs
- Page.cs
- StorageEntitySetMapping.cs
- PaperSource.cs
- RegistryPermission.cs
- DesignerTransaction.cs
- DataServiceKeyAttribute.cs
- SpecialFolderEnumConverter.cs
- ConditionValidator.cs
- RbTree.cs
- GorillaCodec.cs
- SslStream.cs
- Schema.cs
- OperationDescriptionCollection.cs
- ToolStripItemClickedEventArgs.cs
- SRDisplayNameAttribute.cs
- CompilationLock.cs
- XmlCustomFormatter.cs
- ProxySimple.cs
- TagPrefixAttribute.cs
- WebServiceErrorEvent.cs
- CodeAttributeDeclarationCollection.cs
- SoapAttributeAttribute.cs
- SoapDocumentMethodAttribute.cs
- ContentType.cs
- TemplateBindingExtensionConverter.cs
- SmiMetaData.cs
- TargetInvocationException.cs
- ThemeDirectoryCompiler.cs
- BuildProviderAppliesToAttribute.cs
- DateTime.cs
- LogEntrySerializationException.cs
- SafeMemoryMappedFileHandle.cs
- PermissionToken.cs
- RegisteredScript.cs
- HwndKeyboardInputProvider.cs
- QilCloneVisitor.cs
- SmiEventStream.cs