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
- DetailsViewInsertedEventArgs.cs
- DashStyle.cs
- BindingBase.cs
- NavigatorOutput.cs
- GenericIdentity.cs
- FontStretchConverter.cs
- TableStyle.cs
- InkSerializer.cs
- TextSegment.cs
- COAUTHINFO.cs
- HtmlTableCell.cs
- MouseButton.cs
- SeekStoryboard.cs
- TableAdapterManagerGenerator.cs
- ScrollData.cs
- XmlNullResolver.cs
- InheritedPropertyChangedEventArgs.cs
- ISAPIRuntime.cs
- CommonXSendMessage.cs
- StorageRoot.cs
- IndexedString.cs
- Line.cs
- SystemException.cs
- WebPartActionVerb.cs
- SerializerWriterEventHandlers.cs
- TypeForwardedToAttribute.cs
- ObjectItemConventionAssemblyLoader.cs
- ProxyWebPartManager.cs
- ImageSourceValueSerializer.cs
- CryptoProvider.cs
- SecurityMode.cs
- ReachSerializerAsync.cs
- DesignerCatalogPartChrome.cs
- DrawingContextDrawingContextWalker.cs
- XPathDescendantIterator.cs
- XmlCollation.cs
- JsonQueryStringConverter.cs
- CompareValidator.cs
- PauseStoryboard.cs
- ObjectParameter.cs
- ErrorsHelper.cs
- UrlPath.cs
- _BufferOffsetSize.cs
- SessionStateModule.cs
- ControlBuilderAttribute.cs
- XmlAttribute.cs
- DesignerOptions.cs
- NeutralResourcesLanguageAttribute.cs
- ListItemParagraph.cs
- StrongTypingException.cs
- EventHandlerList.cs
- UIElement3D.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- XpsImageSerializationService.cs
- compensatingcollection.cs
- OdbcConnectionFactory.cs
- SqlDependencyUtils.cs
- mda.cs
- ContextProperty.cs
- Substitution.cs
- ToolStripSystemRenderer.cs
- Function.cs
- MultipleViewPatternIdentifiers.cs
- WSSecurityPolicy.cs
- httpserverutility.cs
- SelectorItemAutomationPeer.cs
- CollectionBase.cs
- TrailingSpaceComparer.cs
- NavigationProgressEventArgs.cs
- Literal.cs
- InputProviderSite.cs
- XmlSerializerAssemblyAttribute.cs
- SqlLiftWhereClauses.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TokenBasedSetEnumerator.cs
- DoubleUtil.cs
- ProfileServiceManager.cs
- Vector3DKeyFrameCollection.cs
- OleDbInfoMessageEvent.cs
- RadioButton.cs
- FormViewDeletedEventArgs.cs
- XamlNamespaceHelper.cs
- DebuggerAttributes.cs
- HandlerMappingMemo.cs
- AttributeEmitter.cs
- SessionEndingCancelEventArgs.cs
- ToolboxItemCollection.cs
- Label.cs
- NopReturnReader.cs
- arabicshape.cs
- OdbcTransaction.cs
- ProfilePropertyNameValidator.cs
- IndexerNameAttribute.cs
- QuaternionAnimation.cs
- BitmapEffectInputData.cs
- ConfigXmlElement.cs
- ExceptionHandler.cs
- SQLBinaryStorage.cs
- LogEntryHeaderSerializer.cs
- SynchronousChannelMergeEnumerator.cs