Code:
/ 4.0 / 4.0 / untmp / 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
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SystemDiagnosticsSection.cs
- Single.cs
- MessageTraceRecord.cs
- Encoding.cs
- TakeQueryOptionExpression.cs
- wgx_render.cs
- HasCopySemanticsAttribute.cs
- ListViewDeleteEventArgs.cs
- DefaultMemberAttribute.cs
- ReflectionUtil.cs
- NullReferenceException.cs
- BrowserCapabilitiesFactory.cs
- BatchWriter.cs
- UserControlAutomationPeer.cs
- LoadedOrUnloadedOperation.cs
- XsdDateTime.cs
- LinearGradientBrush.cs
- SelectionProcessor.cs
- ZipIORawDataFileBlock.cs
- DataGridViewAccessibleObject.cs
- base64Transforms.cs
- AvtEvent.cs
- ReadContentAsBinaryHelper.cs
- WorkflowLayouts.cs
- FontStretchConverter.cs
- GridViewPageEventArgs.cs
- ConfigurationException.cs
- AsymmetricKeyExchangeDeformatter.cs
- _Rfc2616CacheValidators.cs
- OptimalTextSource.cs
- WebRequestModuleElementCollection.cs
- ConfigurationSettings.cs
- ConsoleTraceListener.cs
- _SslSessionsCache.cs
- CombinedGeometry.cs
- Timer.cs
- PeerApplication.cs
- TdsRecordBufferSetter.cs
- Profiler.cs
- Selection.cs
- TypeUsage.cs
- WebPartExportVerb.cs
- ReplyAdapterChannelListener.cs
- TimeStampChecker.cs
- X509CertificateTrustedIssuerElementCollection.cs
- ComponentManagerBroker.cs
- SchemaImporterExtensionElementCollection.cs
- StringArrayConverter.cs
- SqlTopReducer.cs
- LinkUtilities.cs
- EntityDataSourceReferenceGroup.cs
- SecurityException.cs
- configsystem.cs
- TemplateKeyConverter.cs
- ObjectRef.cs
- Cursors.cs
- HttpHandlersSection.cs
- BypassElement.cs
- TextDecorationCollection.cs
- DataSvcMapFile.cs
- SoapAttributes.cs
- HyperLinkColumn.cs
- PropertyGeneratedEventArgs.cs
- Rotation3D.cs
- AnnouncementEventArgs.cs
- DelegatedStream.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- SQLSingle.cs
- SafeRightsManagementPubHandle.cs
- HttpListenerResponse.cs
- SelectionWordBreaker.cs
- ToolStripSeparator.cs
- HtmlHistory.cs
- ProfileServiceManager.cs
- ModuleElement.cs
- XPathDocumentIterator.cs
- ButtonBaseAdapter.cs
- SafeFileMapViewHandle.cs
- FromReply.cs
- BaseProcessProtocolHandler.cs
- Line.cs
- DataObjectFieldAttribute.cs
- NavigateUrlConverter.cs
- RotateTransform3D.cs
- QueryLifecycle.cs
- DoubleCollectionValueSerializer.cs
- StylusButtonEventArgs.cs
- HTTPNotFoundHandler.cs
- HMACRIPEMD160.cs
- DiscardableAttribute.cs
- TypeBuilderInstantiation.cs
- QueryAccessibilityHelpEvent.cs
- WebEvents.cs
- EnvironmentPermission.cs
- DoubleAnimation.cs
- SaveFileDialog.cs
- ValueSerializerAttribute.cs
- ImageSourceConverter.cs
- EllipticalNodeOperations.cs
- ManifestResourceInfo.cs