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
- EventEntry.cs
- InvalidPrinterException.cs
- AssemblyBuilder.cs
- GridViewPageEventArgs.cs
- BinaryObjectReader.cs
- CodeAccessSecurityEngine.cs
- SubclassTypeValidatorAttribute.cs
- UserValidatedEventArgs.cs
- LiteralControl.cs
- XmlStreamStore.cs
- NativeRecognizer.cs
- RuleInfoComparer.cs
- EncodingStreamWrapper.cs
- LineSegment.cs
- ObjectAnimationBase.cs
- Selection.cs
- XPathNavigator.cs
- UrlPath.cs
- ResXResourceWriter.cs
- SafeUserTokenHandle.cs
- _HelperAsyncResults.cs
- WebHttpBinding.cs
- EntityDataSourceReferenceGroup.cs
- MetadataFile.cs
- EventLog.cs
- DrawingAttributesDefaultValueFactory.cs
- VariableDesigner.xaml.cs
- FlowDocumentReader.cs
- IncrementalReadDecoders.cs
- DateTimeConverter2.cs
- LinkUtilities.cs
- SHA1CryptoServiceProvider.cs
- TagPrefixCollection.cs
- WSUtilitySpecificationVersion.cs
- WindowsRichEdit.cs
- DateTimeStorage.cs
- ServiceModelEnumValidator.cs
- TypedTableHandler.cs
- CancellationToken.cs
- QuaternionIndependentAnimationStorage.cs
- UInt32.cs
- IResourceProvider.cs
- SQLDecimalStorage.cs
- FrameworkElement.cs
- EntityProviderServices.cs
- AppDomainUnloadedException.cs
- SmiContext.cs
- DataKey.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DynamicILGenerator.cs
- TransformValueSerializer.cs
- BaseTemplateBuildProvider.cs
- OperatorExpressions.cs
- ViewStateException.cs
- ElementUtil.cs
- wmiprovider.cs
- RegexRunnerFactory.cs
- HttpCookieCollection.cs
- Image.cs
- DbConnectionPoolCounters.cs
- CursorConverter.cs
- ProfileService.cs
- ObservableCollection.cs
- XsltSettings.cs
- Graphics.cs
- TimeSpanConverter.cs
- SymbolEqualComparer.cs
- ExtensionSimplifierMarkupObject.cs
- SecurityContext.cs
- CookieProtection.cs
- BaseAddressElementCollection.cs
- ConfigurationErrorsException.cs
- HttpChannelListener.cs
- OdbcConnection.cs
- ThicknessConverter.cs
- RuleSettingsCollection.cs
- SystemUdpStatistics.cs
- TextEndOfSegment.cs
- ControlBuilderAttribute.cs
- TableTextElementCollectionInternal.cs
- DefaultConfirmation.cs
- ObjectAnimationUsingKeyFrames.cs
- NavigationPropertyEmitter.cs
- NextPreviousPagerField.cs
- MasterPage.cs
- TransportContext.cs
- TagNameToTypeMapper.cs
- CultureSpecificStringDictionary.cs
- XmlSchemaException.cs
- Directory.cs
- ContextMenuStrip.cs
- MetadataUtilsSmi.cs
- ResourceLoader.cs
- MediaCommands.cs
- WebBrowsableAttribute.cs
- AffineTransform3D.cs
- BitmapFrameEncode.cs
- DrawingAttributeSerializer.cs
- AnimationClock.cs
- XmlQualifiedName.cs