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
- SubpageParaClient.cs
- rsa.cs
- UnhandledExceptionEventArgs.cs
- Rect3DConverter.cs
- ControlUtil.cs
- NetMsmqSecurity.cs
- MessageBuffer.cs
- TextEditorSelection.cs
- ScrollPattern.cs
- OuterGlowBitmapEffect.cs
- DesignerVerbCollection.cs
- WindowsContainer.cs
- ProxyGenerationError.cs
- Compiler.cs
- StrokeDescriptor.cs
- FormViewDeletedEventArgs.cs
- StrokeIntersection.cs
- IndicShape.cs
- SoapIncludeAttribute.cs
- WindowsEditBoxRange.cs
- SettingsBindableAttribute.cs
- BindingSourceDesigner.cs
- XPathMessageFilterTable.cs
- CultureInfoConverter.cs
- ScrollChrome.cs
- ModelProperty.cs
- FaultDesigner.cs
- ChtmlLinkAdapter.cs
- PathFigureCollectionConverter.cs
- RootBrowserWindowAutomationPeer.cs
- CodeAttachEventStatement.cs
- EventTrigger.cs
- BaseCollection.cs
- ModelItemImpl.cs
- CacheOutputQuery.cs
- ScriptingSectionGroup.cs
- AxisAngleRotation3D.cs
- ContractHandle.cs
- SuppressIldasmAttribute.cs
- _ContextAwareResult.cs
- RelationshipConstraintValidator.cs
- DataGridViewDataConnection.cs
- SerializationTrace.cs
- GridEntry.cs
- TextFormatterContext.cs
- Int64.cs
- ProcessInputEventArgs.cs
- XmlProcessingInstruction.cs
- CssClassPropertyAttribute.cs
- TableProviderWrapper.cs
- MetadataPropertyvalue.cs
- PropertySourceInfo.cs
- DataSourceDescriptorCollection.cs
- Comparer.cs
- XmlSchemaDocumentation.cs
- HebrewCalendar.cs
- GroupStyle.cs
- arabicshape.cs
- SchemaImporterExtensionElement.cs
- ComponentCommands.cs
- ToolstripProfessionalRenderer.cs
- RequestResizeEvent.cs
- BackStopAuthenticationModule.cs
- CompiledAction.cs
- SqlFactory.cs
- WindowInteractionStateTracker.cs
- MemoryMappedViewStream.cs
- SqlDeflator.cs
- EntityProviderFactory.cs
- InternalPermissions.cs
- TimelineCollection.cs
- DmlSqlGenerator.cs
- sqlser.cs
- NavigationWindow.cs
- Partitioner.cs
- versioninfo.cs
- BinaryReader.cs
- SoapTransportImporter.cs
- XmlSchemaAnyAttribute.cs
- ArrayExtension.cs
- InvokeBase.cs
- BorderGapMaskConverter.cs
- SecurityUtils.cs
- XPathSelfQuery.cs
- SqlRowUpdatingEvent.cs
- CompositeControl.cs
- DateBoldEvent.cs
- Metadata.cs
- ProfileGroupSettings.cs
- SqlTrackingQuery.cs
- SqlCacheDependencyDatabase.cs
- Thread.cs
- ToRequest.cs
- TokenBasedSet.cs
- PartialCachingControl.cs
- HtmlAnchor.cs
- ProfessionalColorTable.cs
- RelatedView.cs
- Menu.cs
- odbcmetadatacolumnnames.cs