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
- EmptyEnumerator.cs
- PrefixQName.cs
- DataGridViewCell.cs
- RequestCachePolicyConverter.cs
- X509IssuerSerialKeyIdentifierClause.cs
- CompilationSection.cs
- TextBoxView.cs
- CipherData.cs
- PermissionListSet.cs
- Thread.cs
- Delegate.cs
- TextCollapsingProperties.cs
- XdrBuilder.cs
- Currency.cs
- WindowVisualStateTracker.cs
- LassoSelectionBehavior.cs
- DSGeneratorProblem.cs
- File.cs
- SendKeys.cs
- RewritingSimplifier.cs
- FormClosedEvent.cs
- BorderGapMaskConverter.cs
- AssemblyAssociatedContentFileAttribute.cs
- SpellerError.cs
- DynamicMetaObjectBinder.cs
- TraceLevelStore.cs
- RegexNode.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MimeWriter.cs
- TrackingCondition.cs
- DbConnectionFactory.cs
- ReliableMessagingHelpers.cs
- AndMessageFilter.cs
- PropertyInfo.cs
- DataColumnPropertyDescriptor.cs
- ValidationErrorCollection.cs
- UserControlBuildProvider.cs
- MessageQueueKey.cs
- ChtmlTextWriter.cs
- MimeXmlReflector.cs
- SafeFindHandle.cs
- KnowledgeBase.cs
- GradientStop.cs
- ISAPIRuntime.cs
- FixedTextPointer.cs
- AsnEncodedData.cs
- SafeMemoryMappedViewHandle.cs
- NotSupportedException.cs
- ConfigurationPropertyCollection.cs
- ControlType.cs
- Columns.cs
- DnsPermission.cs
- Ref.cs
- ControlEvent.cs
- RequestCachingSection.cs
- DiagnosticsElement.cs
- Part.cs
- ResponseStream.cs
- DataServiceQueryOfT.cs
- InternalsVisibleToAttribute.cs
- SqlConnectionHelper.cs
- PeerApplicationLaunchInfo.cs
- streamingZipPartStream.cs
- CodeBlockBuilder.cs
- SerialStream.cs
- Frame.cs
- MenuEventArgs.cs
- DataRecordInternal.cs
- LicFileLicenseProvider.cs
- ScriptModule.cs
- PersonalizationState.cs
- StaticExtensionConverter.cs
- FocusTracker.cs
- DocumentSequence.cs
- OdbcCommandBuilder.cs
- ResXResourceSet.cs
- Crc32.cs
- StrokeDescriptor.cs
- DataKeyArray.cs
- NetworkInformationPermission.cs
- WindowsRebar.cs
- UniqueEventHelper.cs
- ButtonPopupAdapter.cs
- _NegotiateClient.cs
- Soap11ServerProtocol.cs
- TemplateField.cs
- InheritanceService.cs
- CLSCompliantAttribute.cs
- BinaryReader.cs
- ButtonRenderer.cs
- FieldNameLookup.cs
- CngKey.cs
- CodeArrayCreateExpression.cs
- DefaultPropertyAttribute.cs
- FlowPanelDesigner.cs
- GeneratedContractType.cs
- ObjectList.cs
- ExpressionBuilder.cs
- EncodingConverter.cs
- SamlAction.cs