Code:
/ 4.0 / 4.0 / 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
// 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
- CompilerGlobalScopeAttribute.cs
- EdmValidator.cs
- Encoder.cs
- HtmlSelect.cs
- NetDataContractSerializer.cs
- OleDbCommandBuilder.cs
- TreeNodeMouseHoverEvent.cs
- ExecutionContext.cs
- SwitchCase.cs
- EmbeddedMailObjectsCollection.cs
- SafeThreadHandle.cs
- SortDescriptionCollection.cs
- WorkflowDesignerMessageFilter.cs
- RequiredArgumentAttribute.cs
- OleDbParameterCollection.cs
- TagPrefixCollection.cs
- QilBinary.cs
- ConfigurationFileMap.cs
- ParseChildrenAsPropertiesAttribute.cs
- PixelShader.cs
- MetadataStore.cs
- DataViewListener.cs
- SafeLocalAllocation.cs
- DataBoundControl.cs
- securitymgrsite.cs
- CurrentChangingEventManager.cs
- Deflater.cs
- DynamicILGenerator.cs
- DocumentGridContextMenu.cs
- WindowsStatusBar.cs
- DataKey.cs
- MailFileEditor.cs
- StringValidator.cs
- PropertyNames.cs
- SoundPlayer.cs
- StrongNameKeyPair.cs
- RowBinding.cs
- FormsAuthenticationUser.cs
- HtmlInputButton.cs
- Validator.cs
- updateconfighost.cs
- contentDescriptor.cs
- DataServiceRequestArgs.cs
- DateTimeConverter2.cs
- PropertyMetadata.cs
- AuthenticationSection.cs
- ColorAnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- WebPartTransformerAttribute.cs
- TextTrailingCharacterEllipsis.cs
- PreservationFileReader.cs
- XmlAttributeOverrides.cs
- TypedTableBase.cs
- DefinitionBase.cs
- AutomationTextAttribute.cs
- AtomServiceDocumentSerializer.cs
- TransformedBitmap.cs
- StandardCommands.cs
- ViewStateModeByIdAttribute.cs
- PerfCounters.cs
- Int64AnimationBase.cs
- HyperlinkAutomationPeer.cs
- CLSCompliantAttribute.cs
- PageParserFilter.cs
- LogSwitch.cs
- HiddenField.cs
- GACIdentityPermission.cs
- TransportChannelListener.cs
- UrlMappingsSection.cs
- sitestring.cs
- RuntimeArgumentHandle.cs
- RouteParser.cs
- Constraint.cs
- LoadedOrUnloadedOperation.cs
- RowUpdatedEventArgs.cs
- FileCodeGroup.cs
- XmlSchemaExternal.cs
- log.cs
- RuntimeHandles.cs
- DeviceContexts.cs
- WebRequestModuleElement.cs
- ISessionStateStore.cs
- _BasicClient.cs
- Pair.cs
- XmlSchemaImporter.cs
- SimpleExpression.cs
- BooleanKeyFrameCollection.cs
- BaseAppDomainProtocolHandler.cs
- Exception.cs
- ToolStripPanelRow.cs
- DiscoveryProxy.cs
- UiaCoreProviderApi.cs
- BitmapMetadataBlob.cs
- SocketException.cs
- ADConnectionHelper.cs
- XhtmlTextWriter.cs
- XmlSchemaChoice.cs
- DefaultValueConverter.cs
- DataSourceIDConverter.cs
- FileDialogPermission.cs