Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1 / 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
- StyleTypedPropertyAttribute.cs
- TextBoxAutoCompleteSourceConverter.cs
- SaveFileDialog.cs
- RegexStringValidator.cs
- SourceElementsCollection.cs
- CardSpaceSelector.cs
- AdornerLayer.cs
- ImmutableCollection.cs
- DataColumnPropertyDescriptor.cs
- TaskbarItemInfo.cs
- InstanceKeyCompleteException.cs
- TextBoxView.cs
- TemplatePartAttribute.cs
- DbParameterCollection.cs
- ECDsaCng.cs
- WebExceptionStatus.cs
- FunctionDescription.cs
- CommandPlan.cs
- WorkflowEventArgs.cs
- FakeModelPropertyImpl.cs
- RSAProtectedConfigurationProvider.cs
- SafeNativeMethodsCLR.cs
- CorePropertiesFilter.cs
- FixedTextView.cs
- BasicKeyConstraint.cs
- ResourceManagerWrapper.cs
- TransformPattern.cs
- Visual3DCollection.cs
- basenumberconverter.cs
- MarkupObject.cs
- EmptyStringExpandableObjectConverter.cs
- GraphicsPathIterator.cs
- PropertyBuilder.cs
- BamlResourceSerializer.cs
- Exceptions.cs
- XmlExpressionDumper.cs
- PagesChangedEventArgs.cs
- CssClassPropertyAttribute.cs
- ProfileProvider.cs
- SystemWebCachingSectionGroup.cs
- DataGridViewToolTip.cs
- CopyEncoder.cs
- Calendar.cs
- NamespaceMapping.cs
- WindowHelperService.cs
- AffineTransform3D.cs
- BinaryParser.cs
- ToolboxItem.cs
- ServiceBehaviorElementCollection.cs
- VectorConverter.cs
- WindowsHyperlink.cs
- OracleLob.cs
- EncoderParameter.cs
- ParameterCollection.cs
- RegexFCD.cs
- WebPartVerbCollection.cs
- SqlExpander.cs
- SessionIDManager.cs
- SmtpMail.cs
- DialogResultConverter.cs
- WebDisplayNameAttribute.cs
- RangeBaseAutomationPeer.cs
- HttpAsyncResult.cs
- ProfessionalColors.cs
- DelayedRegex.cs
- DataSpaceManager.cs
- _Connection.cs
- ToolBarOverflowPanel.cs
- SystemNetHelpers.cs
- MethodCallTranslator.cs
- SettingsPropertyValue.cs
- BooleanSwitch.cs
- AuthStoreRoleProvider.cs
- RichTextBoxContextMenu.cs
- CmsInterop.cs
- OleDbRowUpdatedEvent.cs
- DataExpression.cs
- ServiceSettingsResponseInfo.cs
- UpdateCompiler.cs
- MetadataProperty.cs
- ConstrainedDataObject.cs
- BinHexDecoder.cs
- TrackingMemoryStreamFactory.cs
- SmtpTransport.cs
- NullableDoubleAverageAggregationOperator.cs
- CharEntityEncoderFallback.cs
- WindowsListBox.cs
- CodeDOMUtility.cs
- ThreadStateException.cs
- GeneralTransform.cs
- MapPathBasedVirtualPathProvider.cs
- mediaeventshelper.cs
- SmiRequestExecutor.cs
- BatchServiceHost.cs
- XmlCodeExporter.cs
- ComponentEditorForm.cs
- FolderBrowserDialog.cs
- StylusPointPropertyInfoDefaults.cs
- UserNamePasswordClientCredential.cs
- Config.cs