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
- OfTypeExpression.cs
- FontUnitConverter.cs
- LinqDataSourceContextEventArgs.cs
- relpropertyhelper.cs
- StrongNameMembershipCondition.cs
- PropertyChangedEventManager.cs
- MessageSmuggler.cs
- LoginUtil.cs
- OutputCacheProfileCollection.cs
- Function.cs
- GZipDecoder.cs
- GcSettings.cs
- PropertyReferenceSerializer.cs
- sitestring.cs
- control.ime.cs
- LinkLabel.cs
- ConfigXmlComment.cs
- HitTestWithPointDrawingContextWalker.cs
- Rect3D.cs
- EditorAttributeInfo.cs
- PackWebResponse.cs
- UIHelper.cs
- GridViewDeletedEventArgs.cs
- XmlLoader.cs
- CompiledQueryCacheKey.cs
- EdmMember.cs
- SettingsAttributeDictionary.cs
- XmlSerializerVersionAttribute.cs
- SspiNegotiationTokenAuthenticator.cs
- QueryAccessibilityHelpEvent.cs
- SmtpCommands.cs
- ConcatQueryOperator.cs
- SafeNativeMethods.cs
- InsufficientMemoryException.cs
- StorageEndPropertyMapping.cs
- WebException.cs
- DataService.cs
- HttpProxyCredentialType.cs
- Identity.cs
- NGCSerializer.cs
- ConditionValidator.cs
- PropVariant.cs
- StrokeSerializer.cs
- DynamicEndpointElement.cs
- EditorServiceContext.cs
- HtmlTextArea.cs
- SourceLineInfo.cs
- MultiPartWriter.cs
- ManipulationDelta.cs
- ThemeDirectoryCompiler.cs
- QuaternionAnimationBase.cs
- Privilege.cs
- figurelengthconverter.cs
- UntrustedRecipientException.cs
- BamlMapTable.cs
- ReflectTypeDescriptionProvider.cs
- XmlILIndex.cs
- Win32Interop.cs
- CodeDOMUtility.cs
- EventProxy.cs
- ExpressionEditorAttribute.cs
- ClientSettings.cs
- Semaphore.cs
- EventLogPermissionAttribute.cs
- UIElement.cs
- UrlRoutingHandler.cs
- OpenFileDialog.cs
- ParameterModifier.cs
- ThemeDirectoryCompiler.cs
- PreProcessor.cs
- SQLDecimal.cs
- PolicyManager.cs
- Int16Storage.cs
- PassportPrincipal.cs
- AppDomainFactory.cs
- BinaryOperationBinder.cs
- CheckedListBox.cs
- ToolZone.cs
- StatusBarPanelClickEvent.cs
- ObjectDataSourceStatusEventArgs.cs
- GridSplitterAutomationPeer.cs
- HelpEvent.cs
- _IPv6Address.cs
- DataObjectFieldAttribute.cs
- CollectionViewSource.cs
- X509UI.cs
- SqlFacetAttribute.cs
- SecurityTokenTypes.cs
- QueueProcessor.cs
- CodeGotoStatement.cs
- ImageDrawing.cs
- BufferBuilder.cs
- DataSourceBooleanViewSchemaConverter.cs
- NativeMethods.cs
- DateTimeOffset.cs
- TextElementCollectionHelper.cs
- RegistryPermission.cs
- WebEventCodes.cs
- XmlMapping.cs
- UniqueConstraint.cs