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
- DataGridHeaderBorder.cs
- Visitor.cs
- ProviderIncompatibleException.cs
- CAGDesigner.cs
- Group.cs
- ConnectionInterfaceCollection.cs
- UnsafeNativeMethods.cs
- _HelperAsyncResults.cs
- PerformanceCountersBase.cs
- Rule.cs
- DataGridColumn.cs
- figurelength.cs
- PrinterResolution.cs
- Rectangle.cs
- parserscommon.cs
- XPathAxisIterator.cs
- BufferedResponseStream.cs
- HttpWebRequestElement.cs
- DeviceSpecific.cs
- GenericsInstances.cs
- Window.cs
- DataBinding.cs
- _AutoWebProxyScriptEngine.cs
- CurrencyManager.cs
- Wildcard.cs
- Assert.cs
- AssemblyBuilder.cs
- FixUp.cs
- LoadWorkflowByKeyAsyncResult.cs
- Transactions.cs
- ObjectDataSourceStatusEventArgs.cs
- BinaryNode.cs
- Win32MouseDevice.cs
- ConstantSlot.cs
- EncryptedKey.cs
- PtsContext.cs
- EncoderNLS.cs
- FormatSettings.cs
- nulltextcontainer.cs
- MultipartContentParser.cs
- RegexEditorDialog.cs
- SqlRemoveConstantOrderBy.cs
- WorkflowOwnershipException.cs
- BufferAllocator.cs
- _HeaderInfoTable.cs
- ConnectionOrientedTransportElement.cs
- ListViewCancelEventArgs.cs
- WebCategoryAttribute.cs
- AliasedSlot.cs
- SmiMetaData.cs
- SecureConversationServiceCredential.cs
- SecurityRuntime.cs
- TextAdaptor.cs
- DataGridViewCheckBoxCell.cs
- SystemIcmpV6Statistics.cs
- Persist.cs
- AnnotationResourceCollection.cs
- ToolStripDropDownMenu.cs
- SelectionUIService.cs
- SystemUdpStatistics.cs
- DataPagerCommandEventArgs.cs
- BindingExpression.cs
- ResolveCriteria11.cs
- DbCommandTree.cs
- PeerNameRecord.cs
- SchemaObjectWriter.cs
- DrawingBrush.cs
- ClientFormsIdentity.cs
- UriTemplateMatchException.cs
- FacetValues.cs
- _TLSstream.cs
- PerfCounterSection.cs
- RuntimeUtils.cs
- SettingsBase.cs
- XmlQueryCardinality.cs
- SqlUnionizer.cs
- CultureTable.cs
- querybuilder.cs
- xdrvalidator.cs
- QilReference.cs
- LogAppendAsyncResult.cs
- OdbcHandle.cs
- AsyncOperation.cs
- RectangleConverter.cs
- ListViewHitTestInfo.cs
- WpfKnownMember.cs
- DependencyObject.cs
- LinearKeyFrames.cs
- SqlFacetAttribute.cs
- Focus.cs
- ReferentialConstraint.cs
- NotFiniteNumberException.cs
- DataGridItem.cs
- ResourceReferenceExpression.cs
- StylusPointProperty.cs
- HttpListener.cs
- ConfigurationException.cs
- webproxy.cs
- DataGridViewImageCell.cs
- ConnectionStringSettingsCollection.cs