Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1305600 / 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
- WinFormsUtils.cs
- HTTPNotFoundHandler.cs
- PowerModeChangedEventArgs.cs
- VsPropertyGrid.cs
- SqlDataSourceCommandEventArgs.cs
- xsdvalidator.cs
- RemotingServices.cs
- SiteMembershipCondition.cs
- ErrorHandler.cs
- BasicExpressionVisitor.cs
- smtpconnection.cs
- PlainXmlDeserializer.cs
- DragDrop.cs
- oledbconnectionstring.cs
- ContextMenuStripGroupCollection.cs
- PropertyContainer.cs
- JoinTreeSlot.cs
- TimeSpanMinutesConverter.cs
- SessionStateUtil.cs
- XmlLinkedNode.cs
- MenuItem.cs
- ColorMatrix.cs
- SelectionItemProviderWrapper.cs
- AppDomainProtocolHandler.cs
- AttachedAnnotation.cs
- ToolStripPanel.cs
- NextPreviousPagerField.cs
- Win32KeyboardDevice.cs
- WebPartCloseVerb.cs
- ListItem.cs
- CancelEventArgs.cs
- TypeBuilderInstantiation.cs
- LoginUtil.cs
- MaskInputRejectedEventArgs.cs
- HttpConfigurationContext.cs
- CryptoKeySecurity.cs
- ListViewContainer.cs
- ClientSettingsProvider.cs
- XmlObjectSerializerWriteContext.cs
- HttpServerVarsCollection.cs
- TemplateXamlParser.cs
- ImageAutomationPeer.cs
- ReflectPropertyDescriptor.cs
- XmlSchemaGroupRef.cs
- SortQuery.cs
- RTLAwareMessageBox.cs
- DeflateInput.cs
- Table.cs
- InsufficientMemoryException.cs
- CustomAttributeSerializer.cs
- WriteTimeStream.cs
- SiteMapNodeCollection.cs
- ProxyWebPartManager.cs
- Random.cs
- CodeObjectCreateExpression.cs
- SynchronizedPool.cs
- BindStream.cs
- SqlNotificationEventArgs.cs
- ReferenceSchema.cs
- Int32.cs
- WorkflowDesignerColors.cs
- XamlReaderHelper.cs
- SystemGatewayIPAddressInformation.cs
- AutoGeneratedField.cs
- XPathBuilder.cs
- SqlXml.cs
- TableLayout.cs
- Drawing.cs
- DashStyle.cs
- Normalization.cs
- ListViewPagedDataSource.cs
- ADMembershipProvider.cs
- SupportingTokenBindingElement.cs
- CapabilitiesPattern.cs
- HttpPostProtocolImporter.cs
- InitializerFacet.cs
- SecurityPermission.cs
- PeerTransportSecuritySettings.cs
- SelfIssuedAuthRSACryptoProvider.cs
- FrameDimension.cs
- ValueCollectionParameterReader.cs
- FieldToken.cs
- FormatConvertedBitmap.cs
- Util.cs
- PieceNameHelper.cs
- ProfileService.cs
- FlowLayoutSettings.cs
- WindowsPrincipal.cs
- KeyGesture.cs
- SessionEndingEventArgs.cs
- LassoSelectionBehavior.cs
- ArithmeticException.cs
- TimeSpan.cs
- XmlSignificantWhitespace.cs
- CustomTypeDescriptor.cs
- DefaultParameterValueAttribute.cs
- KeyedHashAlgorithm.cs
- PropertyCollection.cs
- ConfigurationStrings.cs
- DbConnectionStringCommon.cs