Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1305600 / GradientSpreadMethodValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsGradientSpreadMethodValid(object valueObject) { GradientSpreadMethod value = (GradientSpreadMethod) valueObject; return (value == GradientSpreadMethod.Pad) || (value == GradientSpreadMethod.Reflect) || (value == GradientSpreadMethod.Repeat); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsGradientSpreadMethodValid(object valueObject) { GradientSpreadMethod value = (GradientSpreadMethod) valueObject; return (value == GradientSpreadMethod.Pad) || (value == GradientSpreadMethod.Reflect) || (value == GradientSpreadMethod.Repeat); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListViewCommandEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DataGridViewRowsAddedEventArgs.cs
- ObjectViewQueryResultData.cs
- XmlRawWriterWrapper.cs
- OptimizerPatterns.cs
- Tuple.cs
- GridViewDeletedEventArgs.cs
- SqlDependency.cs
- DocumentGrid.cs
- GridViewCommandEventArgs.cs
- ListMarkerSourceInfo.cs
- BinaryReader.cs
- ByteAnimation.cs
- ConfigDefinitionUpdates.cs
- RtfToXamlReader.cs
- LineGeometry.cs
- PassportAuthentication.cs
- TreeViewItem.cs
- MessageDecoder.cs
- EventRoute.cs
- ObjectTag.cs
- StaticResourceExtension.cs
- ConfigurationPropertyAttribute.cs
- StateFinalizationDesigner.cs
- HtmlHistory.cs
- MessageVersion.cs
- PointLight.cs
- XsltLibrary.cs
- HistoryEventArgs.cs
- SiteMap.cs
- ResourceAttributes.cs
- EventLogStatus.cs
- LongValidator.cs
- ServiceXNameTypeConverter.cs
- DataControlPagerLinkButton.cs
- TypeLibConverter.cs
- AsyncCompletedEventArgs.cs
- PropertyManager.cs
- XamlFigureLengthSerializer.cs
- UIServiceHelper.cs
- MergeFilterQuery.cs
- TextElementEnumerator.cs
- IMembershipProvider.cs
- FileEnumerator.cs
- TextTabProperties.cs
- CommandHelper.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- KeyTimeConverter.cs
- TypeInformation.cs
- xamlnodes.cs
- TransactedReceiveData.cs
- FileDataSourceCache.cs
- MultiSelectRootGridEntry.cs
- MetadataItemCollectionFactory.cs
- RelationshipConstraintValidator.cs
- ThousandthOfEmRealDoubles.cs
- TableLayoutPanelCellPosition.cs
- PropertyMetadata.cs
- GridViewPageEventArgs.cs
- ControlPaint.cs
- SubstitutionDesigner.cs
- EndpointBehaviorElement.cs
- PrintDocument.cs
- RegistryHandle.cs
- VirtualDirectoryMapping.cs
- SafeArchiveContext.cs
- CacheOutputQuery.cs
- ArrayWithOffset.cs
- SapiRecoInterop.cs
- InputLangChangeRequestEvent.cs
- AdjustableArrowCap.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ExpanderAutomationPeer.cs
- PasswordTextContainer.cs
- BevelBitmapEffect.cs
- BasePattern.cs
- Rect3DValueSerializer.cs
- IsolatedStorageSecurityState.cs
- QilTargetType.cs
- ZoomPercentageConverter.cs
- XmlQueryRuntime.cs
- PtsPage.cs
- ViewKeyConstraint.cs
- FormatVersion.cs
- Header.cs
- Fault.cs
- ImageMetadata.cs
- TypeInitializationException.cs
- Context.cs
- BamlLocalizableResource.cs
- TextDecorationCollectionConverter.cs
- ConfigXmlCDataSection.cs
- LinkClickEvent.cs
- DataGridViewCheckBoxCell.cs
- PersonalizationStateInfoCollection.cs
- MimeBasePart.cs
- HttpRuntime.cs
- DataGridViewLinkColumn.cs
- ObjectAnimationBase.cs