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
- HitTestResult.cs
- TreeViewImageIndexConverter.cs
- CheckBox.cs
- HtmlFormWrapper.cs
- DirectoryGroupQuery.cs
- EdmItemCollection.cs
- BindingEditor.xaml.cs
- WinInetCache.cs
- ObjectDataSourceEventArgs.cs
- WindowProviderWrapper.cs
- TraceEventCache.cs
- GroupAggregateExpr.cs
- BitmapEffectGroup.cs
- RowSpanVector.cs
- Rules.cs
- ConstraintConverter.cs
- DesignerVerbCollection.cs
- XmlSchemaType.cs
- RSACryptoServiceProvider.cs
- XmlSchemaImporter.cs
- TableRowGroup.cs
- DictionaryBase.cs
- Point.cs
- XPathSelectionIterator.cs
- MetadataSerializer.cs
- CacheOutputQuery.cs
- InternalPermissions.cs
- DoubleIndependentAnimationStorage.cs
- DataSourceIDConverter.cs
- DrawingServices.cs
- MulticastDelegate.cs
- SearchForVirtualItemEventArgs.cs
- FieldCollectionEditor.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ValidateNames.cs
- XmlDictionaryReaderQuotas.cs
- securitycriticaldata.cs
- GregorianCalendar.cs
- MenuItemStyle.cs
- HttpCacheVaryByContentEncodings.cs
- UnsafeNativeMethods.cs
- DbSetClause.cs
- EntityContainerRelationshipSetEnd.cs
- TableLayoutRowStyleCollection.cs
- NonClientArea.cs
- StringToken.cs
- WithStatement.cs
- ImageFormatConverter.cs
- TypePropertyEditor.cs
- XmlSchemaImport.cs
- PixelFormats.cs
- NumberSubstitution.cs
- TextDecorationLocationValidation.cs
- SizeChangedInfo.cs
- XmlILIndex.cs
- XPathAxisIterator.cs
- ProfileBuildProvider.cs
- CalculatedColumn.cs
- Triplet.cs
- CodeIdentifier.cs
- Command.cs
- XmlDictionaryReaderQuotas.cs
- Table.cs
- HintTextMaxWidthConverter.cs
- AddToCollection.cs
- StandardCommands.cs
- QilLiteral.cs
- BezierSegment.cs
- ToolStripScrollButton.cs
- ClickablePoint.cs
- WebPartTransformer.cs
- Attachment.cs
- CompiledRegexRunner.cs
- DesignConnection.cs
- WMICapabilities.cs
- DataControlFieldHeaderCell.cs
- InternalException.cs
- ListBindingConverter.cs
- XomlCompilerHelpers.cs
- SchemaTableOptionalColumn.cs
- AutomationPropertyInfo.cs
- TemplateContainer.cs
- DescendantBaseQuery.cs
- CfgParser.cs
- RequiredFieldValidator.cs
- HtmlButton.cs
- Label.cs
- PcmConverter.cs
- ThreadPool.cs
- DataTableReader.cs
- EntityContainerAssociationSet.cs
- SchemaElementDecl.cs
- SerializableAttribute.cs
- ConstructorArgumentAttribute.cs
- IList.cs
- LookupNode.cs
- DefaultBindingPropertyAttribute.cs
- AssemblyAttributes.cs
- HtmlFormWrapper.cs
- FontNameConverter.cs