Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SQLBoolean.cs
- TableFieldsEditor.cs
- RegexCompilationInfo.cs
- CheckBoxField.cs
- Attachment.cs
- DataColumnMappingCollection.cs
- RegisteredScript.cs
- DeclarationUpdate.cs
- OutputCacheSettings.cs
- Queue.cs
- BooleanProjectedSlot.cs
- SmiSettersStream.cs
- ProtectedConfigurationSection.cs
- Size3DValueSerializer.cs
- SqlTransaction.cs
- Decoder.cs
- AccessedThroughPropertyAttribute.cs
- Certificate.cs
- ConstraintStruct.cs
- TypeUtils.cs
- BindingBase.cs
- DataSourceSerializationException.cs
- FixedSOMLineCollection.cs
- ReliabilityContractAttribute.cs
- _SpnDictionary.cs
- TextDecorationCollection.cs
- FieldCollectionEditor.cs
- HwndHostAutomationPeer.cs
- CellTreeNodeVisitors.cs
- PropertyGroupDescription.cs
- MsmqBindingMonitor.cs
- ScrollViewerAutomationPeer.cs
- ColumnMapTranslator.cs
- Int64Storage.cs
- OracleInternalConnection.cs
- Pair.cs
- DesignTableCollection.cs
- WindowsListViewGroupHelper.cs
- DropDownButton.cs
- storagemappingitemcollection.viewdictionary.cs
- OleDbEnumerator.cs
- BuildProvidersCompiler.cs
- TranslateTransform3D.cs
- SystemColors.cs
- BitmapEffectInput.cs
- ContentWrapperAttribute.cs
- SymbolPair.cs
- ToolBar.cs
- HttpApplication.cs
- Point3DAnimationUsingKeyFrames.cs
- DateTimePicker.cs
- SelectedCellsChangedEventArgs.cs
- Separator.cs
- SecurityContext.cs
- WorkflowNamespace.cs
- EmbeddedObject.cs
- ListControl.cs
- IndexedString.cs
- ConfigurationManagerInternal.cs
- DependsOnAttribute.cs
- SqlDataSourceStatusEventArgs.cs
- InputQueue.cs
- XPathConvert.cs
- SubstitutionList.cs
- CardSpaceException.cs
- BitmapEffectrendercontext.cs
- CodeNamespace.cs
- CheckBoxStandardAdapter.cs
- RegisteredHiddenField.cs
- PropertyValueUIItem.cs
- ListViewItemCollectionEditor.cs
- SafeRightsManagementQueryHandle.cs
- StateDesigner.Layouts.cs
- TypeInfo.cs
- LogicalCallContext.cs
- MemberMaps.cs
- ActivityCollectionMarkupSerializer.cs
- Transform3DCollection.cs
- glyphs.cs
- XamlLoadErrorInfo.cs
- COM2EnumConverter.cs
- DataGridTable.cs
- HashCodeCombiner.cs
- WrapPanel.cs
- ProtocolImporter.cs
- CloudCollection.cs
- WebEventCodes.cs
- RightsManagementEncryptionTransform.cs
- SetIterators.cs
- BindingNavigator.cs
- StreamInfo.cs
- WindowExtensionMethods.cs
- XmlSerializerSection.cs
- CorrelationManager.cs
- DataGridViewLayoutData.cs
- DataGridColumnEventArgs.cs
- SrgsRule.cs
- XmlC14NWriter.cs
- Table.cs
- UIPermission.cs