Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1 / TextDecorationUnitValidation.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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- LogExtent.cs
- MultiSelectRootGridEntry.cs
- TaiwanLunisolarCalendar.cs
- CapabilitiesSection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- PriorityChain.cs
- AffineTransform3D.cs
- ConfigurationSchemaErrors.cs
- ListItemsPage.cs
- XmlNodeList.cs
- UpdatableGenericsFeature.cs
- InvalidWMPVersionException.cs
- PrintDialogDesigner.cs
- LinqDataSourceSelectEventArgs.cs
- View.cs
- WSHttpBindingBase.cs
- UITypeEditor.cs
- DataGridViewLinkCell.cs
- ExpressionEvaluator.cs
- SoapCodeExporter.cs
- BoundConstants.cs
- PickBranchDesigner.xaml.cs
- ArrayEditor.cs
- Accessible.cs
- EntityTypeEmitter.cs
- HtmlInputSubmit.cs
- ParseChildrenAsPropertiesAttribute.cs
- WebResourceUtil.cs
- MenuStrip.cs
- BindUriHelper.cs
- AnyAllSearchOperator.cs
- TraceEventCache.cs
- WorkflowInlining.cs
- UniqueIdentifierService.cs
- RectangleGeometry.cs
- TypedAsyncResult.cs
- ProfileService.cs
- DataExpression.cs
- XamlClipboardData.cs
- RuleRefElement.cs
- NullableDecimalAverageAggregationOperator.cs
- Rect.cs
- MetabaseSettingsIis7.cs
- FolderBrowserDialog.cs
- KeyNotFoundException.cs
- EndpointInfoCollection.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- DocumentPaginator.cs
- DataGridViewRowStateChangedEventArgs.cs
- Double.cs
- EntityTransaction.cs
- PropertyGridEditorPart.cs
- ObjectDataSourceFilteringEventArgs.cs
- XomlCompilerResults.cs
- ChangeProcessor.cs
- _SslState.cs
- _SslState.cs
- DesignerDataTableBase.cs
- PrintPreviewDialog.cs
- StringFreezingAttribute.cs
- ControlEvent.cs
- CompoundFileStreamReference.cs
- HtmlSelectionListAdapter.cs
- EntityDataSourceWizardForm.cs
- ExpressionConverter.cs
- DataTableNewRowEvent.cs
- PrintPreviewDialog.cs
- HtmlHead.cs
- XmlQueryContext.cs
- ApplicationActivator.cs
- KeyInstance.cs
- HtmlSelect.cs
- EntityDataSourceWizardForm.cs
- GregorianCalendar.cs
- PointHitTestParameters.cs
- UndoManager.cs
- RawMouseInputReport.cs
- SqlComparer.cs
- ExtendedPropertyCollection.cs
- SrgsDocument.cs
- Base64Stream.cs
- ScriptIgnoreAttribute.cs
- FileFormatException.cs
- SpotLight.cs
- SystemInformation.cs
- RtfControlWordInfo.cs
- PartitionedStreamMerger.cs
- CompareValidator.cs
- CommonDialog.cs
- HtmlInputSubmit.cs
- recordstatefactory.cs
- ResXBuildProvider.cs
- PropertyManager.cs
- DesignerToolStripControlHost.cs
- TreeView.cs
- SafeNativeMethods.cs
- SelectionUIService.cs
- SecurityRuntime.cs
- LateBoundBitmapDecoder.cs
- StreamGeometry.cs