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
- ArrayConverter.cs
- ProfileModule.cs
- DecimalSumAggregationOperator.cs
- XmlSerializer.cs
- ValuePatternIdentifiers.cs
- DesignerLinkAdapter.cs
- DataServiceQueryProvider.cs
- rsa.cs
- ConstraintCollection.cs
- SHA1Managed.cs
- SafePEFileHandle.cs
- RowType.cs
- Activator.cs
- ToolStripMenuItemDesigner.cs
- SplitContainer.cs
- StandardToolWindows.cs
- NameScopePropertyAttribute.cs
- EditorZone.cs
- HMACRIPEMD160.cs
- DataRelationPropertyDescriptor.cs
- HtmlInputRadioButton.cs
- SearchForVirtualItemEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- ComponentEditorPage.cs
- MimeImporter.cs
- InternalConfigHost.cs
- VisualTreeHelper.cs
- ClientScriptManager.cs
- FileDialogCustomPlace.cs
- PrintEvent.cs
- AttributeCollection.cs
- FontInfo.cs
- ComponentEditorPage.cs
- Viewport3DAutomationPeer.cs
- RTLAwareMessageBox.cs
- UniqueIdentifierService.cs
- ProxyFragment.cs
- RuntimeIdentifierPropertyAttribute.cs
- KoreanCalendar.cs
- HwndProxyElementProvider.cs
- DefaultProxySection.cs
- CloseCollectionAsyncResult.cs
- BookmarkScopeHandle.cs
- HtmlWindow.cs
- BeginStoryboard.cs
- ApplicationSecurityInfo.cs
- PixelFormatConverter.cs
- ProtectedConfiguration.cs
- BrowserCapabilitiesFactory.cs
- TextEncodedRawTextWriter.cs
- baseshape.cs
- XslCompiledTransform.cs
- DataGridViewRowsAddedEventArgs.cs
- DataControlField.cs
- DataSourceDesigner.cs
- SoapObjectWriter.cs
- DesignObjectWrapper.cs
- FilterQueryOptionExpression.cs
- ProfessionalColorTable.cs
- RegexParser.cs
- MultiDataTrigger.cs
- ListDataHelper.cs
- DependencyObjectProvider.cs
- ClientConfigurationSystem.cs
- RolePrincipal.cs
- ColorAnimationUsingKeyFrames.cs
- MatrixTransform3D.cs
- StorageComplexPropertyMapping.cs
- DashStyle.cs
- EnvironmentPermission.cs
- CounterSample.cs
- Rule.cs
- WorkflowViewManager.cs
- Annotation.cs
- DataGridItemEventArgs.cs
- DataControlExtensions.cs
- EntityDataSourceContextDisposingEventArgs.cs
- MonthChangedEventArgs.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- PolyQuadraticBezierSegment.cs
- thaishape.cs
- HTMLTextWriter.cs
- CreateCardRequest.cs
- CodeDomSerializer.cs
- ParallelTimeline.cs
- ResourceExpressionBuilder.cs
- CallbackException.cs
- SqlNode.cs
- XmlUnspecifiedAttribute.cs
- DocumentSequenceHighlightLayer.cs
- IdentityReference.cs
- InstallerTypeAttribute.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BuildManager.cs
- PolygonHotSpot.cs
- NetworkInformationPermission.cs
- TextSelectionHighlightLayer.cs
- ComponentChangingEvent.cs
- CachedPathData.cs
- _AcceptOverlappedAsyncResult.cs