Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MessageBox.cs
- LeafCellTreeNode.cs
- ServiceDescriptions.cs
- ItemsChangedEventArgs.cs
- DataColumn.cs
- ParagraphVisual.cs
- XmlSchemaType.cs
- SimpleHandlerFactory.cs
- EntityConnectionStringBuilder.cs
- Point3DAnimationUsingKeyFrames.cs
- ISFClipboardData.cs
- TimeStampChecker.cs
- SoapReflector.cs
- ArgumentNullException.cs
- AppSettingsExpressionBuilder.cs
- EntityDesignerUtils.cs
- ListViewItemSelectionChangedEvent.cs
- WebPartZoneCollection.cs
- TableParaClient.cs
- SpoolingTaskBase.cs
- TdsParserHelperClasses.cs
- BackStopAuthenticationModule.cs
- ExeConfigurationFileMap.cs
- Socket.cs
- SmtpReplyReader.cs
- ConfigViewGenerator.cs
- CompositeCollection.cs
- ExtensionSimplifierMarkupObject.cs
- DSACryptoServiceProvider.cs
- SmtpReplyReader.cs
- BulletedListEventArgs.cs
- DebugHandleTracker.cs
- LogArchiveSnapshot.cs
- IArgumentProvider.cs
- SamlAuthenticationStatement.cs
- WebConfigurationHost.cs
- TableItemPatternIdentifiers.cs
- WebPartVerbCollection.cs
- WindowsSolidBrush.cs
- RegexNode.cs
- selecteditemcollection.cs
- BoundingRectTracker.cs
- TreeViewEvent.cs
- StopRoutingHandler.cs
- AnnotationStore.cs
- Util.cs
- KernelTypeValidation.cs
- DllNotFoundException.cs
- XPathDocument.cs
- SecurityNegotiationException.cs
- Empty.cs
- WebMessageEncodingElement.cs
- MemoryRecordBuffer.cs
- RepeaterCommandEventArgs.cs
- __Error.cs
- BrowserCapabilitiesFactoryBase.cs
- InvalidContentTypeException.cs
- TreeNodeStyle.cs
- PropertyCollection.cs
- RuntimeCompatibilityAttribute.cs
- SortedList.cs
- NativeActivityTransactionContext.cs
- TextBreakpoint.cs
- SiteMapDataSource.cs
- UnsafeNativeMethodsMilCoreApi.cs
- HandlerBase.cs
- EntityDataSourceContextCreatingEventArgs.cs
- SecurityKeyIdentifier.cs
- CompoundFileStorageReference.cs
- PagerSettings.cs
- DataGridViewColumnEventArgs.cs
- BitmapMetadataEnumerator.cs
- Int32Rect.cs
- ListViewPagedDataSource.cs
- LinqDataSourceView.cs
- SerializationException.cs
- PropertyItem.cs
- EncryptedData.cs
- StyleSheetComponentEditor.cs
- LambdaExpression.cs
- TokenFactoryFactory.cs
- QuestionEventArgs.cs
- XsltLibrary.cs
- HintTextConverter.cs
- SqlTypeConverter.cs
- SqlDataSourceCache.cs
- XmlSchemaIdentityConstraint.cs
- BooleanAnimationUsingKeyFrames.cs
- RowToFieldTransformer.cs
- RoleExceptions.cs
- NotFiniteNumberException.cs
- HandlerFactoryWrapper.cs
- SecurityKeyIdentifier.cs
- COAUTHIDENTITY.cs
- MaterialGroup.cs
- DisableDpiAwarenessAttribute.cs
- StandardBindingElementCollection.cs
- SourceLineInfo.cs
- TextBoxBaseDesigner.cs
- ActivityBindForm.Designer.cs