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
- ExternalFile.cs
- SmiContextFactory.cs
- WorkflowNamespace.cs
- InputLanguageManager.cs
- XmlSchemaAnnotated.cs
- Application.cs
- XmlHierarchicalDataSourceView.cs
- CheckBoxPopupAdapter.cs
- RIPEMD160Managed.cs
- AppDomainAttributes.cs
- NativeMethods.cs
- embossbitmapeffect.cs
- DateTimeOffset.cs
- TextDecoration.cs
- Helpers.cs
- FileSystemEventArgs.cs
- AsyncDataRequest.cs
- Speller.cs
- LinkArea.cs
- AnnotationMap.cs
- SerializationFieldInfo.cs
- KeyboardNavigation.cs
- RadioButtonAutomationPeer.cs
- PlatformCulture.cs
- RuntimeCompatibilityAttribute.cs
- SoapSchemaExporter.cs
- ContentElement.cs
- EntityProviderServices.cs
- NamespaceEmitter.cs
- DummyDataSource.cs
- QilReplaceVisitor.cs
- TextDocumentView.cs
- IProducerConsumerCollection.cs
- Translator.cs
- DataRecordInternal.cs
- HashCodeCombiner.cs
- BamlRecordHelper.cs
- TreeNode.cs
- ExpandSegment.cs
- ConfigurationErrorsException.cs
- LocationReferenceEnvironment.cs
- FixedSOMTable.cs
- NativeMethods.cs
- SmiSettersStream.cs
- DiffuseMaterial.cs
- DataGridViewCheckBoxColumn.cs
- FlowDocumentView.cs
- OleDbTransaction.cs
- WebPartsPersonalizationAuthorization.cs
- XmlResolver.cs
- SrgsRuleRef.cs
- RoleService.cs
- ColorTranslator.cs
- SecurityPermission.cs
- messageonlyhwndwrapper.cs
- GroupDescription.cs
- DispatcherHookEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- SqlGenericUtil.cs
- EntitySetBase.cs
- RoutedEventValueSerializer.cs
- TraceData.cs
- CodeGenerator.cs
- FontUnit.cs
- SettingsProviderCollection.cs
- ProxyAssemblyNotLoadedException.cs
- Formatter.cs
- ErrorLog.cs
- JulianCalendar.cs
- BasicBrowserDialog.cs
- mda.cs
- EntityCommand.cs
- RuntimeTransactionHandle.cs
- XomlDesignerLoader.cs
- IgnoreSection.cs
- ConfigErrorGlyph.cs
- ValueCollectionParameterReader.cs
- ChangeProcessor.cs
- WindowsTitleBar.cs
- ProcessModule.cs
- ProgressBar.cs
- AssemblyAttributesGoHere.cs
- QuadraticBezierSegment.cs
- Line.cs
- CopyNamespacesAction.cs
- SqlDataSource.cs
- XmlBoundElement.cs
- SizeAnimation.cs
- BitmapEffectDrawingContent.cs
- GridEntry.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- ClientUtils.cs
- StdRegProviderWrapper.cs
- SelfIssuedAuthAsymmetricKey.cs
- storagemappingitemcollection.viewdictionary.cs
- WebPartMovingEventArgs.cs
- RawTextInputReport.cs
- CustomWebEventKey.cs
- WindowsGraphics2.cs
- SignedXmlDebugLog.cs