Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FileLevelControlBuilderAttribute.cs
- ThousandthOfEmRealDoubles.cs
- SqlConnectionHelper.cs
- DrawingContextWalker.cs
- TracedNativeMethods.cs
- Timer.cs
- UIPropertyMetadata.cs
- QueryExecutionOption.cs
- RelationshipNavigation.cs
- DirectoryObjectSecurity.cs
- GeometryCollection.cs
- FormsAuthenticationModule.cs
- _DomainName.cs
- Stylesheet.cs
- DataServiceRequestException.cs
- Control.cs
- SiteMapDataSource.cs
- tooltip.cs
- OutputCacheSettings.cs
- StringSorter.cs
- CreateUserErrorEventArgs.cs
- FixedStringLookup.cs
- XmlTextWriter.cs
- PrinterSettings.cs
- Journaling.cs
- SequenceRangeCollection.cs
- WebReferenceOptions.cs
- DataGridViewComboBoxColumn.cs
- AssertFilter.cs
- FileUpload.cs
- ExpressionTextBox.xaml.cs
- SortQuery.cs
- RealizationDrawingContextWalker.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- InputGestureCollection.cs
- LinqDataSourceDisposeEventArgs.cs
- SkewTransform.cs
- WsatExtendedInformation.cs
- DataPagerFieldItem.cs
- CodeAttributeArgumentCollection.cs
- DateTimeParse.cs
- ComplexTypeEmitter.cs
- XmlEnumAttribute.cs
- LinkClickEvent.cs
- SecurityAppliedMessage.cs
- CodeTryCatchFinallyStatement.cs
- CrossAppDomainChannel.cs
- CodeTypeDeclarationCollection.cs
- EllipseGeometry.cs
- LocalizationComments.cs
- SHA512Managed.cs
- BitmapPalette.cs
- DataListItemCollection.cs
- EdmScalarPropertyAttribute.cs
- UInt32Storage.cs
- PropertyEntry.cs
- CompositeControl.cs
- BamlLocalizableResource.cs
- jithelpers.cs
- WmfPlaceableFileHeader.cs
- ToolStripOverflow.cs
- Transform.cs
- RoleBoolean.cs
- GlyphRunDrawing.cs
- DataGridColumn.cs
- ScrollItemProviderWrapper.cs
- MatrixTransform3D.cs
- DataGridSortCommandEventArgs.cs
- ScriptIgnoreAttribute.cs
- AssemblyHash.cs
- SchemaExporter.cs
- NameTable.cs
- ExceptionWrapper.cs
- Slider.cs
- LayoutTableCell.cs
- LinqDataSourceDeleteEventArgs.cs
- ObjectItemLoadingSessionData.cs
- TextEncodedRawTextWriter.cs
- VirtualDirectoryMapping.cs
- SchemaTableOptionalColumn.cs
- ThousandthOfEmRealDoubles.cs
- EventDrivenDesigner.cs
- ValueSerializer.cs
- ByeOperation11AsyncResult.cs
- XmlException.cs
- InternalPolicyElement.cs
- TypeSystem.cs
- IndexExpression.cs
- MethodExpr.cs
- NamedPipeConnectionPoolSettingsElement.cs
- AppSettingsSection.cs
- DataGridViewRowHeaderCell.cs
- WindowsGraphics.cs
- RemoteWebConfigurationHostServer.cs
- Marshal.cs
- BufferedGraphicsManager.cs
- EncryptRequest.cs
- WindowsFormsSectionHandler.cs
- EntityTransaction.cs
- ExpressionBindings.cs