Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1 / AlignmentYValidation.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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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
- FastPropertyAccessor.cs
- EntityTransaction.cs
- SecurityKeyIdentifier.cs
- CodeTryCatchFinallyStatement.cs
- KerberosSecurityTokenAuthenticator.cs
- ButtonColumn.cs
- ListControl.cs
- ConnectionProviderAttribute.cs
- MessageSecurityVersionConverter.cs
- ByeOperationAsyncResult.cs
- EndEvent.cs
- DesignSurfaceManager.cs
- XmlArrayItemAttribute.cs
- Page.cs
- BoundField.cs
- MobileControlsSectionHelper.cs
- ServerReliableChannelBinder.cs
- NestedContainer.cs
- TextEditor.cs
- AttributeInfo.cs
- FormViewUpdatedEventArgs.cs
- SessionState.cs
- ParserStreamGeometryContext.cs
- CodeTypeDeclarationCollection.cs
- ProtocolsSection.cs
- ErrorLog.cs
- ValidatingReaderNodeData.cs
- MouseGesture.cs
- SqlBooleanizer.cs
- DockPanel.cs
- ListMarkerLine.cs
- Misc.cs
- PageStatePersister.cs
- CatalogZone.cs
- HyperLinkStyle.cs
- TableChangeProcessor.cs
- IIS7UserPrincipal.cs
- GroupBoxAutomationPeer.cs
- LoadWorkflowCommand.cs
- SQLUtility.cs
- TextEncodedRawTextWriter.cs
- CfgParser.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- HyperLinkStyle.cs
- SqlMethodTransformer.cs
- ClientApiGenerator.cs
- ProcessModelInfo.cs
- XmlDictionary.cs
- Int16AnimationUsingKeyFrames.cs
- ArrayElementGridEntry.cs
- ConstraintStruct.cs
- StorageModelBuildProvider.cs
- NumberEdit.cs
- TextRunCacheImp.cs
- ObjectDataSourceWizardForm.cs
- ClientSession.cs
- XmlObjectSerializerWriteContext.cs
- WeakReadOnlyCollection.cs
- ControlLocalizer.cs
- ImageProxy.cs
- OpenFileDialog.cs
- OdbcParameterCollection.cs
- SQLDecimal.cs
- ModifierKeysConverter.cs
- FileSystemWatcher.cs
- QueryResponse.cs
- filewebrequest.cs
- CharEntityEncoderFallback.cs
- StorageRoot.cs
- _AutoWebProxyScriptHelper.cs
- ObjectSelectorEditor.cs
- CurrentChangedEventManager.cs
- ButtonFieldBase.cs
- TextElementCollectionHelper.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Interop.cs
- OperationFormatStyle.cs
- ElementHost.cs
- DictionaryEntry.cs
- OuterGlowBitmapEffect.cs
- ExtensionFile.cs
- DbConnectionPoolGroup.cs
- CellLabel.cs
- DatatypeImplementation.cs
- PinnedBufferMemoryStream.cs
- SmiEventSink_Default.cs
- AppDomainUnloadedException.cs
- HuffModule.cs
- HttpInputStream.cs
- CompilationSection.cs
- ALinqExpressionVisitor.cs
- ListBoxChrome.cs
- SmiSettersStream.cs
- OleDbParameter.cs
- DetailsViewInsertedEventArgs.cs
- ImageSourceConverter.cs
- LayoutSettings.cs
- DataPagerFieldCommandEventArgs.cs
- BuildManagerHost.cs
- ToolStripLocationCancelEventArgs.cs