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 / 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
- Menu.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ExpressionBindingCollection.cs
- BitHelper.cs
- XmlBoundElement.cs
- FilteredDataSetHelper.cs
- DeleteMemberBinder.cs
- IPAddressCollection.cs
- TextBounds.cs
- Win32PrintDialog.cs
- MethodAccessException.cs
- Visual.cs
- CurrencyManager.cs
- SupportsEventValidationAttribute.cs
- ObjectHandle.cs
- AdornedElementPlaceholder.cs
- FaultDescriptionCollection.cs
- HttpBrowserCapabilitiesBase.cs
- RelationalExpressions.cs
- ArgumentException.cs
- PointUtil.cs
- Misc.cs
- GZipStream.cs
- ManagedIStream.cs
- GeneralTransform3DGroup.cs
- LineGeometry.cs
- ToolStripManager.cs
- ResourceDictionaryCollection.cs
- ReferenceTypeElement.cs
- SourceFileBuildProvider.cs
- PassportAuthentication.cs
- GridItemProviderWrapper.cs
- ProcessManager.cs
- DataSetUtil.cs
- GroupJoinQueryOperator.cs
- BitmapScalingModeValidation.cs
- CompositionTarget.cs
- Profiler.cs
- TransformDescriptor.cs
- URLIdentityPermission.cs
- DbTransaction.cs
- CustomAttributeSerializer.cs
- XmlSignatureProperties.cs
- _TransmitFileOverlappedAsyncResult.cs
- BaseCodeDomTreeGenerator.cs
- ImageBrush.cs
- XmlMembersMapping.cs
- GridViewPageEventArgs.cs
- Tuple.cs
- SchemaContext.cs
- NumericUpDown.cs
- RemoveStoryboard.cs
- MatrixCamera.cs
- ScriptManagerProxy.cs
- ProcessHost.cs
- Attribute.cs
- MemoryStream.cs
- AuthenticationServiceManager.cs
- DistinctQueryOperator.cs
- XmlILAnnotation.cs
- QueueTransferProtocol.cs
- SessionStateContainer.cs
- LinqDataSourceUpdateEventArgs.cs
- ContentFileHelper.cs
- SqlSelectClauseBuilder.cs
- VersionUtil.cs
- HandleExceptionArgs.cs
- SessionParameter.cs
- CharConverter.cs
- InvalidDataContractException.cs
- MetaModel.cs
- MultiDataTrigger.cs
- WebPartCloseVerb.cs
- MulticastNotSupportedException.cs
- ImageBrush.cs
- CollaborationHelperFunctions.cs
- DataSourceControl.cs
- RestrictedTransactionalPackage.cs
- FusionWrap.cs
- SqlDataSource.cs
- ObjectItemConventionAssemblyLoader.cs
- Types.cs
- XmlEncodedRawTextWriter.cs
- InstalledFontCollection.cs
- SqlDuplicator.cs
- ServiceReference.cs
- IPPacketInformation.cs
- NativeActivityMetadata.cs
- InlineObject.cs
- DataRecordInfo.cs
- XmlTypeAttribute.cs
- Variable.cs
- DebugInfoGenerator.cs
- HelpInfo.cs
- ExtensionWindowResizeGrip.cs
- SecUtil.cs
- NullableBoolConverter.cs
- DisposableCollectionWrapper.cs
- TemplateXamlParser.cs
- SqlDependencyUtils.cs