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
- CollectionContainer.cs
- MetricEntry.cs
- ShaderRenderModeValidation.cs
- AppDomainManager.cs
- SafeNativeMethods.cs
- ThreadAbortException.cs
- ScriptResourceAttribute.cs
- ObjectSecurity.cs
- XmlSchemaComplexContent.cs
- PenThreadWorker.cs
- WebServicesInteroperability.cs
- PageBreakRecord.cs
- CircleHotSpot.cs
- PartialTrustVisibleAssemblyCollection.cs
- bindurihelper.cs
- DecoderReplacementFallback.cs
- ActivationArguments.cs
- XslTransform.cs
- SqlConnectionPoolProviderInfo.cs
- AnonymousIdentificationModule.cs
- AsyncResult.cs
- SafeCryptHandles.cs
- DbException.cs
- PersistenceTypeAttribute.cs
- InvalidWMPVersionException.cs
- InputLanguage.cs
- MetadataUtilsSmi.cs
- SizeAnimation.cs
- ServiceInfo.cs
- CodeTypeParameterCollection.cs
- XmlObjectSerializerContext.cs
- OdbcUtils.cs
- SolidColorBrush.cs
- SqlXmlStorage.cs
- KnownBoxes.cs
- SqlNotificationRequest.cs
- HierarchicalDataSourceIDConverter.cs
- EntityDataSourceDesignerHelper.cs
- DiscoveryExceptionDictionary.cs
- CommentEmitter.cs
- precedingquery.cs
- FixedTextContainer.cs
- CellConstantDomain.cs
- CatalogPartCollection.cs
- Quad.cs
- CompilerErrorCollection.cs
- ISO2022Encoding.cs
- CacheAxisQuery.cs
- HttpCookie.cs
- InternalDuplexBindingElement.cs
- XamlWriter.cs
- DesignSurfaceCollection.cs
- DependencyPropertyConverter.cs
- AuthenticationModuleElementCollection.cs
- X509ClientCertificateCredentialsElement.cs
- ThumbAutomationPeer.cs
- ClickablePoint.cs
- ValidationHelpers.cs
- DbConnectionHelper.cs
- ShaderEffect.cs
- EventLogPermissionHolder.cs
- DefaultHttpHandler.cs
- MSAAWinEventWrap.cs
- SqlDataSourceSelectingEventArgs.cs
- AssemblyCollection.cs
- DiscoveryClient.cs
- CodeAccessSecurityEngine.cs
- RoutedEventHandlerInfo.cs
- StylusShape.cs
- ImageCollectionEditor.cs
- TableCellsCollectionEditor.cs
- WindowsListViewItemStartMenu.cs
- Attributes.cs
- CheckBoxBaseAdapter.cs
- InfocardClientCredentials.cs
- Membership.cs
- PasswordTextContainer.cs
- SqlVisitor.cs
- HtmlUtf8RawTextWriter.cs
- Literal.cs
- CreateParams.cs
- _AcceptOverlappedAsyncResult.cs
- ObjectListCommandsPage.cs
- WebPartChrome.cs
- GeometryCollection.cs
- Wrapper.cs
- OuterGlowBitmapEffect.cs
- PrintPageEvent.cs
- IndexOutOfRangeException.cs
- SiteMapProvider.cs
- ObjectSpanRewriter.cs
- CapabilitiesUse.cs
- IdleTimeoutMonitor.cs
- AnnotationElement.cs
- FormatSelectingMessageInspector.cs
- PrintController.cs
- MobileControlDesigner.cs
- PolyQuadraticBezierSegment.cs
- OutKeywords.cs
- XmlTypeAttribute.cs