Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ResourceCategoryAttribute.cs
- GPStream.cs
- SourceFileInfo.cs
- DataServiceKeyAttribute.cs
- SynchronizedDispatch.cs
- CounterCreationData.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ScriptMethodAttribute.cs
- XmlUtil.cs
- coordinator.cs
- HotCommands.cs
- PropertyOverridesTypeEditor.cs
- SecureEnvironment.cs
- HttpHostedTransportConfiguration.cs
- SafeRightsManagementHandle.cs
- TextBlockAutomationPeer.cs
- ValidatedControlConverter.cs
- AnonymousIdentificationSection.cs
- ControlAdapter.cs
- QueryInterceptorAttribute.cs
- SafeHandles.cs
- OrderToken.cs
- LockingPersistenceProvider.cs
- WebBrowserNavigatedEventHandler.cs
- SafeNativeMethods.cs
- ConfigsHelper.cs
- InstanceContext.cs
- CompiledScopeCriteria.cs
- precedingsibling.cs
- PartialList.cs
- SpotLight.cs
- GetFileNameResult.cs
- KnownBoxes.cs
- Win32PrintDialog.cs
- EntityDataSourceSelectingEventArgs.cs
- GrammarBuilder.cs
- ACE.cs
- Pkcs7Recipient.cs
- SafeRightsManagementHandle.cs
- CompilerTypeWithParams.cs
- InstalledFontCollection.cs
- DataGridViewColumnHeaderCell.cs
- FileSystemWatcher.cs
- ConstraintStruct.cs
- StickyNoteAnnotations.cs
- UrlPropertyAttribute.cs
- SpStreamWrapper.cs
- ProcessStartInfo.cs
- XmlSerializationReader.cs
- XmlQueryOutput.cs
- ColumnWidthChangingEvent.cs
- AssemblyBuilder.cs
- MarkupCompilePass2.cs
- DispatcherProcessingDisabled.cs
- TableCellAutomationPeer.cs
- DesignerListAdapter.cs
- ParserHooks.cs
- GenericsInstances.cs
- PageFunction.cs
- SqlProfileProvider.cs
- BindableAttribute.cs
- ToolboxItemFilterAttribute.cs
- Point4D.cs
- FrameworkObject.cs
- UriParserTemplates.cs
- BindingMAnagerBase.cs
- WebPartDeleteVerb.cs
- StylusPlugin.cs
- AnimationLayer.cs
- ZipIOCentralDirectoryFileHeader.cs
- FormViewDeletedEventArgs.cs
- SubMenuStyleCollection.cs
- UnSafeCharBuffer.cs
- COM2Enum.cs
- ByteKeyFrameCollection.cs
- NameScopePropertyAttribute.cs
- FileBasedResourceGroveler.cs
- Tool.cs
- AdjustableArrowCap.cs
- CheckedPointers.cs
- GeneralTransform3D.cs
- FormatConvertedBitmap.cs
- XPathAncestorIterator.cs
- WebPartChrome.cs
- PreviewPrintController.cs
- Activator.cs
- XappLauncher.cs
- NumberAction.cs
- EditorPartCollection.cs
- HostedHttpContext.cs
- ContractUtils.cs
- StateDesigner.Layouts.cs
- IsolatedStorageFilePermission.cs
- Property.cs
- CreateUserWizard.cs
- ReachObjectContext.cs
- ObjectSecurity.cs
- CodeTypeReference.cs
- LinqDataSourceHelper.cs
- ObjectManager.cs