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
- WeakReferenceList.cs
- DataTemplateKey.cs
- AnnotationResource.cs
- PropertyInfoSet.cs
- DmlSqlGenerator.cs
- XmlSchemaCollection.cs
- MenuItem.cs
- ExtendedPropertyInfo.cs
- Timer.cs
- RegularExpressionValidator.cs
- CompoundFileStorageReference.cs
- InternalPolicyElement.cs
- MaterialGroup.cs
- ObjectPersistData.cs
- AssemblyInfo.cs
- InternalBufferOverflowException.cs
- DataStreamFromComStream.cs
- ZipIOModeEnforcingStream.cs
- ViewManager.cs
- CatalogPartCollection.cs
- PenLineJoinValidation.cs
- RectKeyFrameCollection.cs
- RegexWorker.cs
- Compilation.cs
- ParallelEnumerableWrapper.cs
- WinCategoryAttribute.cs
- SamlSubject.cs
- FloaterParaClient.cs
- OledbConnectionStringbuilder.cs
- ProcessInfo.cs
- ContextStack.cs
- DetailsViewRowCollection.cs
- AgileSafeNativeMemoryHandle.cs
- OutKeywords.cs
- NavigatorInvalidBodyAccessException.cs
- ModifierKeysValueSerializer.cs
- ToolstripProfessionalRenderer.cs
- DetailsViewDeleteEventArgs.cs
- CapiHashAlgorithm.cs
- IDReferencePropertyAttribute.cs
- ComplusTypeValidator.cs
- SimpleTypesSurrogate.cs
- EventWaitHandle.cs
- EntityDataSourceViewSchema.cs
- HealthMonitoringSectionHelper.cs
- ReliableSessionElement.cs
- MetaModel.cs
- TextEditorThreadLocalStore.cs
- OleStrCAMarshaler.cs
- AssemblyBuilder.cs
- MultipartIdentifier.cs
- LazyLoadBehavior.cs
- HttpException.cs
- DispatchWrapper.cs
- WorkflowOwnershipException.cs
- WebBodyFormatMessageProperty.cs
- ObjectListCommandsPage.cs
- MapPathBasedVirtualPathProvider.cs
- ModifiableIteratorCollection.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- AxisAngleRotation3D.cs
- MetadataSource.cs
- ReferencedAssembly.cs
- CodeSubDirectory.cs
- BlockUIContainer.cs
- GroupBox.cs
- PropertyChangeTracker.cs
- Line.cs
- CheckBoxBaseAdapter.cs
- _Semaphore.cs
- IPGlobalProperties.cs
- XmlCharCheckingWriter.cs
- ErrorsHelper.cs
- OperandQuery.cs
- SmtpLoginAuthenticationModule.cs
- TransformerInfo.cs
- BaseDataListDesigner.cs
- PageFunction.cs
- NativeMethods.cs
- TargetFrameworkAttribute.cs
- FormViewInsertEventArgs.cs
- SchemaAttDef.cs
- TabItemAutomationPeer.cs
- GridItem.cs
- SkewTransform.cs
- XmlCharCheckingReader.cs
- Ipv6Element.cs
- Nodes.cs
- TextPatternIdentifiers.cs
- FormViewUpdateEventArgs.cs
- CollectionEditVerbManager.cs
- DataGridViewMethods.cs
- DataStreams.cs
- OciHandle.cs
- GeometryModel3D.cs
- TextSerializer.cs
- OleDbParameter.cs
- mda.cs
- QueryStringParameter.cs
- Compiler.cs