Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ExtentKey.cs
- UnsafeNativeMethods.cs
- CommandValueSerializer.cs
- OracleConnection.cs
- EpmSyndicationContentSerializer.cs
- ShaderEffect.cs
- ConfigurationPropertyAttribute.cs
- SortExpressionBuilder.cs
- JournalEntryStack.cs
- DeviceSpecificDialogCachedState.cs
- ArgumentNullException.cs
- RecognizerBase.cs
- AnimationException.cs
- FlatButtonAppearance.cs
- DoubleAnimation.cs
- BamlTreeUpdater.cs
- TextContainerChangeEventArgs.cs
- AppDomain.cs
- NavigatorOutput.cs
- EndpointIdentity.cs
- IndicCharClassifier.cs
- HierarchicalDataSourceControl.cs
- _NtlmClient.cs
- UriParserTemplates.cs
- NameTable.cs
- TextParagraphProperties.cs
- Lasso.cs
- HeaderCollection.cs
- TimersDescriptionAttribute.cs
- ZipFileInfoCollection.cs
- BindingValueChangedEventArgs.cs
- SecurityTokenProviderContainer.cs
- MachineKeySection.cs
- SQLMoney.cs
- FormViewPageEventArgs.cs
- Html32TextWriter.cs
- DeclaredTypeElement.cs
- KeyEventArgs.cs
- DebuggerAttributes.cs
- latinshape.cs
- DependencySource.cs
- ValidationRule.cs
- HttpCacheVaryByContentEncodings.cs
- ListViewPagedDataSource.cs
- SystemEvents.cs
- CodeCastExpression.cs
- StateChangeEvent.cs
- MeasureData.cs
- FamilyMap.cs
- RoutingService.cs
- TableAdapterManagerGenerator.cs
- Thread.cs
- ImageCodecInfoPrivate.cs
- Int16Animation.cs
- AffineTransform3D.cs
- StateDesigner.Helpers.cs
- HostedTcpTransportManager.cs
- ApplicationCommands.cs
- UpdateExpressionVisitor.cs
- Part.cs
- RtfToXamlReader.cs
- SqlTypeConverter.cs
- Point.cs
- OdbcConnectionFactory.cs
- TextPointer.cs
- RuntimeConfigLKG.cs
- TailCallAnalyzer.cs
- SessionSwitchEventArgs.cs
- XmlAutoDetectWriter.cs
- TemplateContentLoader.cs
- ActivationServices.cs
- DoubleCollectionValueSerializer.cs
- QuaternionConverter.cs
- NeutralResourcesLanguageAttribute.cs
- AttributeData.cs
- Span.cs
- InplaceBitmapMetadataWriter.cs
- TemplateNameScope.cs
- GcHandle.cs
- XmlStreamStore.cs
- MiniCustomAttributeInfo.cs
- _ShellExpression.cs
- DocumentationServerProtocol.cs
- StylusPointDescription.cs
- MailWriter.cs
- SimpleWorkerRequest.cs
- DataSetMappper.cs
- ToolStripLabel.cs
- FileSystemEventArgs.cs
- Brush.cs
- ClientProxyGenerator.cs
- EncodingInfo.cs
- ProvideValueServiceProvider.cs
- DataGridViewTextBoxCell.cs
- configsystem.cs
- Transform3D.cs
- XsdBuilder.cs
- PropertyPath.cs
- CompilerTypeWithParams.cs
- BaseTreeIterator.cs