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
- SessionStateModule.cs
- InternalReceiveMessage.cs
- SafeReversePInvokeHandle.cs
- Object.cs
- TypeReference.cs
- EntityDataSourceContextDisposingEventArgs.cs
- GuidConverter.cs
- UntrustedRecipientException.cs
- PartManifestEntry.cs
- RTLAwareMessageBox.cs
- DataGridViewCellStyleConverter.cs
- UpdatePanelControlTrigger.cs
- HttpRequestCacheValidator.cs
- TypeUtils.cs
- base64Transforms.cs
- Size3D.cs
- ProxyDataContractResolver.cs
- TypefaceMap.cs
- Simplifier.cs
- ToggleButtonAutomationPeer.cs
- TreeNodeClickEventArgs.cs
- SortDescription.cs
- FormsAuthenticationUser.cs
- BaseProcessor.cs
- ArithmeticLiteral.cs
- ListManagerBindingsCollection.cs
- PropertySourceInfo.cs
- ValidationHelper.cs
- TypeConstant.cs
- IgnoreSectionHandler.cs
- IssuedTokensHeader.cs
- Composition.cs
- SQLMoneyStorage.cs
- TdsRecordBufferSetter.cs
- PopupEventArgs.cs
- HtmlString.cs
- ClientProxyGenerator.cs
- InputScope.cs
- BindingListCollectionView.cs
- ThicknessConverter.cs
- AnimationLayer.cs
- RegionData.cs
- OleDbEnumerator.cs
- TemplateInstanceAttribute.cs
- FieldNameLookup.cs
- PeerNameRecord.cs
- IndependentAnimationStorage.cs
- BidPrivateBase.cs
- ScrollViewerAutomationPeer.cs
- DrawListViewItemEventArgs.cs
- MimePart.cs
- TextClipboardData.cs
- WorkflowServiceOperationListItem.cs
- RowToFieldTransformer.cs
- Identity.cs
- EntitySetBaseCollection.cs
- Image.cs
- DataGridViewLinkCell.cs
- SqlDuplicator.cs
- ToolStripSystemRenderer.cs
- ADMembershipUser.cs
- TextEditorDragDrop.cs
- _SslState.cs
- PauseStoryboard.cs
- MarginsConverter.cs
- HttpInputStream.cs
- ParameterToken.cs
- UriTemplateHelpers.cs
- RuleSettingsCollection.cs
- CacheForPrimitiveTypes.cs
- X509Certificate2.cs
- TdsParserSessionPool.cs
- InstanceNameConverter.cs
- SubclassTypeValidator.cs
- ExtendedProperty.cs
- ServiceActivationException.cs
- RequiredAttributeAttribute.cs
- Brushes.cs
- WindowsTooltip.cs
- WebPartActionVerb.cs
- DataGridViewRowHeaderCell.cs
- MembershipValidatePasswordEventArgs.cs
- DispatchRuntime.cs
- RenderTargetBitmap.cs
- SafeProcessHandle.cs
- LateBoundBitmapDecoder.cs
- MachineKey.cs
- WorkflowHostingResponseContext.cs
- SmiGettersStream.cs
- IteratorAsyncResult.cs
- XmlDataSourceNodeDescriptor.cs
- MethodMessage.cs
- TableCellCollection.cs
- IPAddressCollection.cs
- SmiConnection.cs
- RelatedEnd.cs
- DeviceSpecificDialogCachedState.cs
- SortDescription.cs
- UDPClient.cs
- MsmqInputChannelListenerBase.cs