Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- CombinedHttpChannel.cs
- CharacterBuffer.cs
- SemanticBasicElement.cs
- AuthenticationException.cs
- FragmentQuery.cs
- ResourceWriter.cs
- EncryptedReference.cs
- IUnknownConstantAttribute.cs
- ChangeBlockUndoRecord.cs
- Point3DAnimationBase.cs
- FilteredReadOnlyMetadataCollection.cs
- StrongNameIdentityPermission.cs
- SqlSelectStatement.cs
- ImpersonateTokenRef.cs
- AnnotationHighlightLayer.cs
- StructuredProperty.cs
- SizeLimitedCache.cs
- XmlReader.cs
- Expressions.cs
- ProfessionalColorTable.cs
- RadioButtonFlatAdapter.cs
- DetailsViewDeleteEventArgs.cs
- CustomErrorCollection.cs
- AttributeSetAction.cs
- SqlResolver.cs
- ScopeCollection.cs
- TemplateGroupCollection.cs
- LayoutEngine.cs
- MarginCollapsingState.cs
- CommandHelpers.cs
- XmlMtomWriter.cs
- GeneralTransform3DGroup.cs
- RegexWorker.cs
- DataGridViewCellEventArgs.cs
- WindowsListBox.cs
- ExecutedRoutedEventArgs.cs
- IssuedTokenClientCredential.cs
- FunctionUpdateCommand.cs
- SqlCommandSet.cs
- DynamicField.cs
- AttachInfo.cs
- ConsumerConnectionPointCollection.cs
- LeaseManager.cs
- RoutingService.cs
- SiteMapNodeItemEventArgs.cs
- Stylus.cs
- InstanceDataCollection.cs
- ZipIOLocalFileBlock.cs
- shaperfactoryquerycacheentry.cs
- HttpCacheParams.cs
- SpecularMaterial.cs
- PerformanceCounterNameAttribute.cs
- DeadCharTextComposition.cs
- Focus.cs
- DBCommandBuilder.cs
- AudioLevelUpdatedEventArgs.cs
- TypedTableBaseExtensions.cs
- RecognizedWordUnit.cs
- FormsAuthenticationConfiguration.cs
- RotateTransform3D.cs
- SecurityManager.cs
- ReaderOutput.cs
- ComponentDispatcher.cs
- ListSortDescription.cs
- BrowserInteropHelper.cs
- DataGridViewComboBoxCell.cs
- Accessible.cs
- FloatAverageAggregationOperator.cs
- ClientBuildManagerCallback.cs
- EntityDataSourceViewSchema.cs
- AmbientLight.cs
- DataRelation.cs
- MatrixAnimationUsingKeyFrames.cs
- TypeResolver.cs
- SafeHandle.cs
- Help.cs
- ConfigurationStrings.cs
- EnumConverter.cs
- UnhandledExceptionEventArgs.cs
- DebugControllerThread.cs
- FloaterBaseParagraph.cs
- AuthenticationService.cs
- UserUseLicenseDictionaryLoader.cs
- Invariant.cs
- StatusBarAutomationPeer.cs
- AVElementHelper.cs
- StreamResourceInfo.cs
- ItemDragEvent.cs
- MatchingStyle.cs
- TdsParserStaticMethods.cs
- ResourceDescriptionAttribute.cs
- EntityCommandExecutionException.cs
- ManifestSignedXml.cs
- WinHttpWebProxyFinder.cs
- ClientConfigurationSystem.cs
- JavaScriptSerializer.cs
- WebBrowserProgressChangedEventHandler.cs
- UiaCoreProviderApi.cs
- RadialGradientBrush.cs
- RepeatButtonAutomationPeer.cs