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
- PropertyGridEditorPart.cs
- DragStartedEventArgs.cs
- DataGridViewButtonCell.cs
- RandomNumberGenerator.cs
- RefreshEventArgs.cs
- ProjectionCamera.cs
- BitFlagsGenerator.cs
- ProxyHelper.cs
- QilReplaceVisitor.cs
- ConditionalAttribute.cs
- EnumMemberAttribute.cs
- FileReader.cs
- SqlDataReader.cs
- SQLBoolean.cs
- NetworkCredential.cs
- AutomationElementCollection.cs
- EventlogProvider.cs
- RbTree.cs
- _SSPISessionCache.cs
- DbDeleteCommandTree.cs
- CancellableEnumerable.cs
- CompilerParameters.cs
- BindingOperations.cs
- ByteStreamMessageEncoderFactory.cs
- MenuTracker.cs
- FirstMatchCodeGroup.cs
- StylusPoint.cs
- MdiWindowListStrip.cs
- ReflectEventDescriptor.cs
- AssemblyNameEqualityComparer.cs
- ExtendedTransformFactory.cs
- XmlAttributeAttribute.cs
- PaginationProgressEventArgs.cs
- XmlCustomFormatter.cs
- ProfileSettings.cs
- IndexedEnumerable.cs
- GlyphRunDrawing.cs
- ValidationEventArgs.cs
- HttpBufferlessInputStream.cs
- StorageRoot.cs
- QilStrConcat.cs
- CqlGenerator.cs
- SimpleTypesSurrogate.cs
- XmlTextEncoder.cs
- RequiredFieldValidator.cs
- ProviderUtil.cs
- EnumBuilder.cs
- DropTarget.cs
- NotCondition.cs
- ValidationRuleCollection.cs
- StorageEntityTypeMapping.cs
- FormatSettings.cs
- AutoGeneratedFieldProperties.cs
- XNodeNavigator.cs
- XmlProcessingInstruction.cs
- ContentPosition.cs
- WebPartManagerInternals.cs
- MaterialGroup.cs
- BinHexDecoder.cs
- CommandField.cs
- XPathAncestorIterator.cs
- RedistVersionInfo.cs
- QueryAsyncResult.cs
- SystemIPInterfaceStatistics.cs
- WindowsContainer.cs
- GACIdentityPermission.cs
- ColumnTypeConverter.cs
- XmlTypeAttribute.cs
- SqlGenerator.cs
- ToolStripDropDownMenu.cs
- DelegateSerializationHolder.cs
- WbemException.cs
- ExpressionPrinter.cs
- StreamProxy.cs
- PresentationTraceSources.cs
- IntSecurity.cs
- InertiaExpansionBehavior.cs
- GraphicsPathIterator.cs
- DbParameterCollectionHelper.cs
- securitycriticaldata.cs
- JoinSymbol.cs
- XmlNodeReader.cs
- TextClipboardData.cs
- NetSectionGroup.cs
- WindowShowOrOpenTracker.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ScriptingScriptResourceHandlerSection.cs
- SchemaTypeEmitter.cs
- IndexedEnumerable.cs
- ProjectionCamera.cs
- contentDescriptor.cs
- HttpApplicationFactory.cs
- HighlightComponent.cs
- XmlPreloadedResolver.cs
- EventMappingSettingsCollection.cs
- HtmlContainerControl.cs
- FaultCallbackWrapper.cs
- Barrier.cs
- ServiceParser.cs
- ClientUrlResolverWrapper.cs