Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XPathMultyIterator.cs
- Stack.cs
- ContentPlaceHolder.cs
- Color.cs
- GenericAuthenticationEventArgs.cs
- PageContentCollection.cs
- IncrementalHitTester.cs
- MachineSettingsSection.cs
- Symbol.cs
- EpmCustomContentSerializer.cs
- DataBindingList.cs
- SkinIDTypeConverter.cs
- AdornerPresentationContext.cs
- ReferenceEqualityComparer.cs
- SourceFileInfo.cs
- ExpressionBuilderCollection.cs
- OdbcEnvironmentHandle.cs
- ValueChangedEventManager.cs
- MediaCommands.cs
- DocumentViewerBaseAutomationPeer.cs
- ItemContainerGenerator.cs
- TextTrailingWordEllipsis.cs
- ValidationService.cs
- ProcessHostConfigUtils.cs
- SpecialFolderEnumConverter.cs
- WorkflowLayouts.cs
- MailBnfHelper.cs
- Content.cs
- ColorTransform.cs
- DynamicILGenerator.cs
- XPathNodeIterator.cs
- CodeAccessPermission.cs
- TextRangeEditLists.cs
- DataBindingExpressionBuilder.cs
- DataGridViewColumnStateChangedEventArgs.cs
- CodeTypeMember.cs
- ISO2022Encoding.cs
- HuffCodec.cs
- ServiceNameCollection.cs
- KeyNotFoundException.cs
- Message.cs
- RepeatInfo.cs
- HttpCacheVaryByContentEncodings.cs
- ValueType.cs
- SecurityKeyIdentifier.cs
- RangeValuePatternIdentifiers.cs
- HttpPostedFile.cs
- BinaryFormatter.cs
- CultureTable.cs
- Vertex.cs
- VarInfo.cs
- UnsafeNativeMethods.cs
- EncoderParameters.cs
- TextBoxView.cs
- TextEditorMouse.cs
- ListSortDescription.cs
- ping.cs
- DockProviderWrapper.cs
- DispatcherOperation.cs
- StatusBarPanel.cs
- FactoryId.cs
- ConnectionManagementElementCollection.cs
- AppLevelCompilationSectionCache.cs
- OutOfProcStateClientManager.cs
- PeerNameRecord.cs
- TextDecorationCollection.cs
- FixedTextContainer.cs
- StreamGeometry.cs
- ObjectList.cs
- StrongNameMembershipCondition.cs
- processwaithandle.cs
- DataGridBeginningEditEventArgs.cs
- DataGridViewRowStateChangedEventArgs.cs
- DisplayMemberTemplateSelector.cs
- RoleGroup.cs
- XmlRootAttribute.cs
- MultipartContentParser.cs
- TextBoxLine.cs
- LinkAreaEditor.cs
- ContainerParagraph.cs
- DESCryptoServiceProvider.cs
- ToolStripGripRenderEventArgs.cs
- TextComposition.cs
- RIPEMD160.cs
- ScriptingProfileServiceSection.cs
- ClientCredentials.cs
- HtmlControl.cs
- ApplicationInfo.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DNS.cs
- CompilationLock.cs
- sqlinternaltransaction.cs
- KeyboardNavigation.cs
- WizardForm.cs
- BindingsCollection.cs
- WizardSideBarListControlItem.cs
- SqlMultiplexer.cs
- WebPartConnectionsCloseVerb.cs
- TextTreeInsertUndoUnit.cs
- TextEditorParagraphs.cs