Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1 / AlignmentXValidation.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 IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // 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 IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // 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
- ApplicationTrust.cs
- SafeSecurityHelper.cs
- Funcletizer.cs
- Axis.cs
- CultureInfoConverter.cs
- TCEAdapterGenerator.cs
- ProcessModuleCollection.cs
- LinqDataSourceValidationException.cs
- OdbcUtils.cs
- XmlSerializableServices.cs
- DoubleAnimation.cs
- ByteStorage.cs
- RolePrincipal.cs
- ParsedAttributeCollection.cs
- ExpressionVisitor.cs
- DelegateTypeInfo.cs
- XmlSchemaInfo.cs
- ConnectionManagementSection.cs
- EnlistmentState.cs
- PropertyChangedEventArgs.cs
- XmlSchemaSimpleContentExtension.cs
- SignedXml.cs
- RegexRunnerFactory.cs
- ObjectListSelectEventArgs.cs
- TrustSection.cs
- ElementsClipboardData.cs
- ConfigXmlElement.cs
- XamlToRtfWriter.cs
- SectionVisual.cs
- SerialStream.cs
- Msec.cs
- SynchronizationContext.cs
- TransactionManager.cs
- PageEventArgs.cs
- PropertyChange.cs
- BaseServiceProvider.cs
- FileVersion.cs
- Int32RectValueSerializer.cs
- AmbientLight.cs
- ItemCheckedEvent.cs
- ArgumentValueSerializer.cs
- FileInfo.cs
- XmlTextWriter.cs
- StsCommunicationException.cs
- MailSettingsSection.cs
- AsyncContentLoadedEventArgs.cs
- PersonalizationAdministration.cs
- ScrollChangedEventArgs.cs
- BinaryObjectInfo.cs
- input.cs
- RelationshipEnd.cs
- _HelperAsyncResults.cs
- CompiledIdentityConstraint.cs
- QueryStringParameter.cs
- HtmlElementEventArgs.cs
- PrePrepareMethodAttribute.cs
- MulticastOption.cs
- XmlWellformedWriter.cs
- AccessorTable.cs
- DBParameter.cs
- NavigatorInput.cs
- contentDescriptor.cs
- CharacterMetricsDictionary.cs
- UserControlBuildProvider.cs
- RectangleConverter.cs
- ActivityExecutionFilter.cs
- ApplicationManager.cs
- ItemAutomationPeer.cs
- ExpressionEditorSheet.cs
- _AutoWebProxyScriptWrapper.cs
- ListViewItemCollectionEditor.cs
- OleDbConnection.cs
- KeyedHashAlgorithm.cs
- httpstaticobjectscollection.cs
- ADConnectionHelper.cs
- SqlGenerator.cs
- PersonalizablePropertyEntry.cs
- TextRangeEditLists.cs
- PointLightBase.cs
- AttributedMetaModel.cs
- FrameworkContentElement.cs
- OdbcUtils.cs
- ToolStripPanel.cs
- wgx_commands.cs
- HuffCodec.cs
- EntryIndex.cs
- DelegateTypeInfo.cs
- EntityConnectionStringBuilderItem.cs
- MultiBindingExpression.cs
- ObjectTypeMapping.cs
- DSASignatureDeformatter.cs
- DataKeyArray.cs
- Int64AnimationBase.cs
- ContentPosition.cs
- WebControlsSection.cs
- _AutoWebProxyScriptHelper.cs
- DataServiceQueryProvider.cs
- AvTraceDetails.cs
- UpdateCommand.cs
- CallContext.cs