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
- TabItemAutomationPeer.cs
- ProxyWebPartManager.cs
- Permission.cs
- Polygon.cs
- WebRequestModuleElementCollection.cs
- XmlElementList.cs
- TableCellCollection.cs
- SafeProcessHandle.cs
- FilterEventArgs.cs
- IgnoreSection.cs
- JsonGlobals.cs
- DelimitedListTraceListener.cs
- ResumeStoryboard.cs
- XmlTextReader.cs
- BasicExpandProvider.cs
- PointAnimationUsingPath.cs
- PnrpPermission.cs
- CodeArrayCreateExpression.cs
- XPathNavigatorException.cs
- GeometryCollection.cs
- FaultReason.cs
- RelatedCurrencyManager.cs
- MemberAssignment.cs
- SequenceFullException.cs
- TransformPatternIdentifiers.cs
- SamlSubjectStatement.cs
- DynamicILGenerator.cs
- AsyncOperationLifetimeManager.cs
- TimeSpanParse.cs
- WebContentFormatHelper.cs
- HttpRuntimeSection.cs
- InputManager.cs
- ZipIOLocalFileHeader.cs
- PublisherIdentityPermission.cs
- XPathDocument.cs
- HtmlInputText.cs
- Inline.cs
- SessionEndingCancelEventArgs.cs
- RequestDescription.cs
- ClipboardProcessor.cs
- Guid.cs
- SerializationInfoEnumerator.cs
- FormViewUpdatedEventArgs.cs
- EndpointFilterProvider.cs
- NegationPusher.cs
- EventSchemaTraceListener.cs
- sqlstateclientmanager.cs
- BinaryObjectWriter.cs
- LineSegment.cs
- WebPartEventArgs.cs
- SoapReflector.cs
- DefaultObjectMappingItemCollection.cs
- AddressAlreadyInUseException.cs
- FormsAuthenticationUserCollection.cs
- DelimitedListTraceListener.cs
- PerformanceCounterManager.cs
- EnumerableWrapperWeakToStrong.cs
- DataBinding.cs
- FileAuthorizationModule.cs
- ControlCommandSet.cs
- AmbientProperties.cs
- mansign.cs
- EncryptedPackage.cs
- EventLogPermissionAttribute.cs
- ListViewCancelEventArgs.cs
- CompressedStack.cs
- FileVersionInfo.cs
- DataSourceControlBuilder.cs
- AudioFormatConverter.cs
- UidManager.cs
- ImpersonationContext.cs
- QuotedPrintableStream.cs
- DataGridViewComboBoxCell.cs
- WebPartRestoreVerb.cs
- SignatureDescription.cs
- ControlCachePolicy.cs
- SafeHandle.cs
- Calendar.cs
- MenuAutomationPeer.cs
- InlineObject.cs
- AVElementHelper.cs
- RemoteDebugger.cs
- ExpandCollapseIsCheckedConverter.cs
- MergePropertyDescriptor.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XPathSingletonIterator.cs
- ObjectConverter.cs
- XmlException.cs
- TransformValueSerializer.cs
- MissingMethodException.cs
- TextParagraphProperties.cs
- Image.cs
- Rect3D.cs
- SurrogateEncoder.cs
- ApplicationException.cs
- WorkflowDesigner.cs
- TextShapeableCharacters.cs
- RoleManagerEventArgs.cs
- LinearKeyFrames.cs
- InternalRelationshipCollection.cs