Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Misc / ImageListUtils.cs / 1 / 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
- SqlCharStream.cs
- Overlapped.cs
- ExpressionBindingCollection.cs
- ClientFactory.cs
- WinEventQueueItem.cs
- DetailsViewRow.cs
- FixedPageStructure.cs
- ErrorEventArgs.cs
- XmlDataSource.cs
- CommunicationObjectManager.cs
- SimpleLine.cs
- webeventbuffer.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- ListDictionaryInternal.cs
- DateTimeOffsetConverter.cs
- DomainConstraint.cs
- OperationResponse.cs
- TextServicesCompartmentEventSink.cs
- AccessText.cs
- ButtonStandardAdapter.cs
- TokenBasedSet.cs
- OdbcEnvironmentHandle.cs
- PropertyMapper.cs
- ChannelToken.cs
- SingleSelectRootGridEntry.cs
- OleStrCAMarshaler.cs
- PermissionToken.cs
- XmlDataSource.cs
- DependencyObjectValidator.cs
- EntityCodeGenerator.cs
- StrongNameKeyPair.cs
- FormViewPageEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- BaseDataList.cs
- SqlDataSource.cs
- ListManagerBindingsCollection.cs
- HwndStylusInputProvider.cs
- ZipIOBlockManager.cs
- RolePrincipal.cs
- VerificationAttribute.cs
- EntityKeyElement.cs
- RegistryKey.cs
- SafeFileHandle.cs
- ClientApiGenerator.cs
- ConfigurationManagerInternalFactory.cs
- NetCodeGroup.cs
- CachedPathData.cs
- DynamicAttribute.cs
- FieldBuilder.cs
- COM2IDispatchConverter.cs
- TimeoutStream.cs
- TrailingSpaceComparer.cs
- TrackingAnnotationCollection.cs
- sqlstateclientmanager.cs
- SkipStoryboardToFill.cs
- DefaultAuthorizationContext.cs
- ScriptControlManager.cs
- BitmapSource.cs
- Stack.cs
- AmbientValueAttribute.cs
- DynamicEndpoint.cs
- EnumValidator.cs
- DtrList.cs
- _TLSstream.cs
- SQLMembershipProvider.cs
- DifferencingCollection.cs
- Vector3DIndependentAnimationStorage.cs
- PeerDuplexChannel.cs
- AssociationTypeEmitter.cs
- RequestDescription.cs
- ProjectionAnalyzer.cs
- SerializableTypeCodeDomSerializer.cs
- DataGridViewDataErrorEventArgs.cs
- ListBoxItemAutomationPeer.cs
- ControlValuePropertyAttribute.cs
- CollaborationHelperFunctions.cs
- MessageHeaderDescriptionCollection.cs
- Byte.cs
- IsolatedStorage.cs
- HttpResponseHeader.cs
- WebControlAdapter.cs
- CodeDOMUtility.cs
- ToolboxComponentsCreatingEventArgs.cs
- AutoGeneratedFieldProperties.cs
- SmiGettersStream.cs
- ThaiBuddhistCalendar.cs
- ClassValidator.cs
- DataListItemCollection.cs
- SchemaNamespaceManager.cs
- DataControlFieldCollection.cs
- XmlNodeComparer.cs
- DetailsViewUpdatedEventArgs.cs
- PreviewKeyDownEventArgs.cs
- ExitEventArgs.cs
- BufferedStream.cs
- StylusPointDescription.cs
- EntitySqlQueryState.cs
- PatternMatcher.cs
- MetricEntry.cs
- SqlTrackingQuery.cs