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
- MouseGestureConverter.cs
- SafeReversePInvokeHandle.cs
- TextBoxBase.cs
- IndicCharClassifier.cs
- ConnectionStringSettings.cs
- RichTextBox.cs
- IntSecurity.cs
- xml.cs
- ParserStreamGeometryContext.cs
- XmlSchemaObjectTable.cs
- XmlUnspecifiedAttribute.cs
- BitmapEffectInput.cs
- SwitchElementsCollection.cs
- Boolean.cs
- DecoderExceptionFallback.cs
- ToolStripItemClickedEventArgs.cs
- GeneralTransform.cs
- ContentElementAutomationPeer.cs
- DataServiceRequestArgs.cs
- ObjectQuery.cs
- ICspAsymmetricAlgorithm.cs
- EncryptedData.cs
- SerializationException.cs
- RemoteDebugger.cs
- OleDbFactory.cs
- figurelengthconverter.cs
- FilterQueryOptionExpression.cs
- WindowsListViewGroupSubsetLink.cs
- MessageBodyMemberAttribute.cs
- KnownTypesHelper.cs
- PngBitmapDecoder.cs
- StateFinalizationDesigner.cs
- CalendarDay.cs
- VoiceObjectToken.cs
- SimpleLine.cs
- Module.cs
- WebEventCodes.cs
- ConfigurationValidatorAttribute.cs
- NullableDoubleMinMaxAggregationOperator.cs
- TextEditorSpelling.cs
- JsonFormatWriterGenerator.cs
- PropertyEntry.cs
- DSASignatureFormatter.cs
- PolygonHotSpot.cs
- DisplayNameAttribute.cs
- DataControlImageButton.cs
- ListViewDeletedEventArgs.cs
- DoubleStorage.cs
- MediaElementAutomationPeer.cs
- CodeParameterDeclarationExpression.cs
- DataGridViewCellMouseEventArgs.cs
- SocketSettings.cs
- ProviderSettings.cs
- ConfigurationSettings.cs
- ThicknessConverter.cs
- versioninfo.cs
- SerializationFieldInfo.cs
- SudsCommon.cs
- RolePrincipal.cs
- SafeHandles.cs
- SapiRecoContext.cs
- ApplicationActivator.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- LineBreakRecord.cs
- GenericTextProperties.cs
- InOutArgumentConverter.cs
- SqlUnionizer.cs
- CqlErrorHelper.cs
- RoleService.cs
- Underline.cs
- IntSecurity.cs
- ToolboxComponentsCreatingEventArgs.cs
- ContainerVisual.cs
- WindowsFont.cs
- LinqExpressionNormalizer.cs
- CodeVariableReferenceExpression.cs
- OneOfConst.cs
- CustomAttributeFormatException.cs
- MetabaseReader.cs
- VirtualPath.cs
- PropertyGridCommands.cs
- ScriptMethodAttribute.cs
- HtmlForm.cs
- SmiEventSink.cs
- Floater.cs
- TypeElement.cs
- EncryptedPackage.cs
- ContentElementAutomationPeer.cs
- TemplateBindingExtensionConverter.cs
- ClientSettingsStore.cs
- UndoManager.cs
- GenericAuthenticationEventArgs.cs
- ListInitExpression.cs
- TileBrush.cs
- DataBinding.cs
- CodeCastExpression.cs
- TextRangeSerialization.cs
- MDIClient.cs
- RtfToken.cs
- AspNetPartialTrustHelpers.cs