Code:
/ 4.0 / 4.0 / untmp / 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
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Atom10FormatterFactory.cs
- InternalTypeHelper.cs
- LayoutEditorPart.cs
- Timer.cs
- AssociatedControlConverter.cs
- PropertyConverter.cs
- SHA384CryptoServiceProvider.cs
- CompositeActivityTypeDescriptor.cs
- TraceSection.cs
- ResourcePermissionBase.cs
- PeerContact.cs
- FontSizeConverter.cs
- SqlServer2KCompatibilityCheck.cs
- ScriptServiceAttribute.cs
- ConsoleCancelEventArgs.cs
- EDesignUtil.cs
- COM2Properties.cs
- QilXmlWriter.cs
- DynamicValidator.cs
- DbConnectionPoolOptions.cs
- HttpServerUtilityBase.cs
- ToolStripItemImageRenderEventArgs.cs
- TreeNodeBindingCollection.cs
- ServicePoint.cs
- HotCommands.cs
- NumberSubstitution.cs
- DropSource.cs
- VideoDrawing.cs
- ErrorItem.cs
- ECDiffieHellmanCngPublicKey.cs
- QilSortKey.cs
- MaskInputRejectedEventArgs.cs
- MenuItemStyleCollection.cs
- CachedPathData.cs
- smtpconnection.cs
- SynchronizedCollection.cs
- StatusBar.cs
- NotifyIcon.cs
- DataGridViewLinkCell.cs
- SystemResources.cs
- ObjectItemCollection.cs
- CryptoKeySecurity.cs
- ContainerUIElement3D.cs
- StateItem.cs
- AssemblyBuilder.cs
- ObjectTag.cs
- ListParaClient.cs
- LabelEditEvent.cs
- ComplexType.cs
- TaskHelper.cs
- ToolboxItemCollection.cs
- Predicate.cs
- CodeDefaultValueExpression.cs
- ReservationNotFoundException.cs
- TimeManager.cs
- _SslState.cs
- CacheEntry.cs
- WinEventHandler.cs
- Parser.cs
- _SecureChannel.cs
- TextServicesCompartment.cs
- ToolStripControlHost.cs
- ParsedAttributeCollection.cs
- ITextView.cs
- EventKeyword.cs
- HttpVersion.cs
- HeaderUtility.cs
- OracleParameterBinding.cs
- DataReceivedEventArgs.cs
- Screen.cs
- HostingEnvironment.cs
- LiteralSubsegment.cs
- TiffBitmapEncoder.cs
- RemotingServices.cs
- CaseInsensitiveHashCodeProvider.cs
- PageCatalogPart.cs
- ProvidePropertyAttribute.cs
- TracePayload.cs
- CodeCommentStatement.cs
- Group.cs
- ResourceWriter.cs
- Relationship.cs
- IRCollection.cs
- WorkflowRuntimeService.cs
- ActivationServices.cs
- InstancePersistenceCommandException.cs
- XmlSchemaSimpleTypeRestriction.cs
- ZipIOFileItemStream.cs
- TypeToken.cs
- ResXResourceReader.cs
- ConfigurationFileMap.cs
- KeyValuePair.cs
- LicFileLicenseProvider.cs
- EntityStoreSchemaGenerator.cs
- MsmqIntegrationSecurity.cs
- TableDetailsCollection.cs
- SafeFileMappingHandle.cs
- UrlMappingCollection.cs
- BitmapDownload.cs
- FormatterConverter.cs