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
- ErrorCodes.cs
- UpdatePanelTrigger.cs
- DataGridViewRowsRemovedEventArgs.cs
- FormViewActionList.cs
- InfoCardRSACryptoProvider.cs
- ComponentDispatcher.cs
- CharacterMetricsDictionary.cs
- ProfileParameter.cs
- QilNode.cs
- Rotation3DAnimationBase.cs
- sqlnorm.cs
- DragEvent.cs
- InternalPolicyElement.cs
- FlowDocumentFormatter.cs
- OdbcPermission.cs
- PluralizationService.cs
- ApplicationServiceManager.cs
- BitVec.cs
- Stacktrace.cs
- Timeline.cs
- ConnectionPoolRegistry.cs
- NativeRecognizer.cs
- SHA256Managed.cs
- HttpHandlersSection.cs
- XmlStringTable.cs
- CodeAttributeArgument.cs
- WebPartTransformer.cs
- FormsAuthenticationTicket.cs
- FixedSOMPageElement.cs
- IconEditor.cs
- CompModSwitches.cs
- ContainerUtilities.cs
- XmlIterators.cs
- QueuePathDialog.cs
- StateElement.cs
- PropertyFilterAttribute.cs
- SiteMapNodeItem.cs
- StylusLogic.cs
- TransactionScopeDesigner.cs
- Point3DAnimation.cs
- ExtenderProvidedPropertyAttribute.cs
- XPathNodeList.cs
- CLRBindingWorker.cs
- XmlAnyElementAttributes.cs
- CompilerErrorCollection.cs
- PeerContact.cs
- RequestResizeEvent.cs
- log.cs
- NeedSkipTokenVisitor.cs
- EndpointDiscoveryMetadataCD1.cs
- PartitionResolver.cs
- WeakReferenceEnumerator.cs
- TemplateBuilder.cs
- WebPartDescription.cs
- SqlBulkCopyColumnMappingCollection.cs
- Sorting.cs
- SecurityCriticalDataForSet.cs
- ChannelSinkStacks.cs
- Int32Rect.cs
- FullTextBreakpoint.cs
- ValidationSummary.cs
- BamlTreeMap.cs
- DesigntimeLicenseContext.cs
- DrawingBrush.cs
- ParentQuery.cs
- MSHTMLHostUtil.cs
- _BasicClient.cs
- DesignerListAdapter.cs
- HtmlDocument.cs
- RequestQueue.cs
- EventHandlers.cs
- CharacterMetricsDictionary.cs
- WeakEventTable.cs
- Vector3DAnimationUsingKeyFrames.cs
- ProcessHostServerConfig.cs
- ModelToObjectValueConverter.cs
- Attachment.cs
- EventLogSession.cs
- SiblingIterators.cs
- CaseStatement.cs
- Configuration.cs
- Config.cs
- CryptoConfig.cs
- CustomSignedXml.cs
- SiteOfOriginPart.cs
- DllNotFoundException.cs
- _HelperAsyncResults.cs
- RecordBuilder.cs
- AnimationException.cs
- OrderedDictionary.cs
- WizardForm.cs
- PropertyMappingExceptionEventArgs.cs
- Executor.cs
- DBConnectionString.cs
- HtmlTitle.cs
- ViewManager.cs
- KeySplineConverter.cs
- CacheDependency.cs
- ErrorFormatterPage.cs
- CapabilitiesRule.cs