Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RotateTransform3D.cs
- SqlDataAdapter.cs
- CodeGenerator.cs
- PassportAuthenticationModule.cs
- StateMachine.cs
- FormsAuthenticationEventArgs.cs
- BookmarkInfo.cs
- TableLayoutPanelBehavior.cs
- XmlNodeReader.cs
- StorageModelBuildProvider.cs
- CapabilitiesUse.cs
- InkCanvas.cs
- TracePayload.cs
- ScrollEvent.cs
- MultipartContentParser.cs
- HeaderCollection.cs
- ComProxy.cs
- ComponentResourceManager.cs
- AxisAngleRotation3D.cs
- ForwardPositionQuery.cs
- ReflectionUtil.cs
- QilUnary.cs
- QueryAccessibilityHelpEvent.cs
- tooltip.cs
- IndentTextWriter.cs
- ToolStripDropTargetManager.cs
- PassportAuthentication.cs
- Operator.cs
- CreateUserErrorEventArgs.cs
- CodeMemberProperty.cs
- ListViewInsertionMark.cs
- ToolTip.cs
- CubicEase.cs
- SqlCacheDependencySection.cs
- WorkflowInlining.cs
- HtmlInputRadioButton.cs
- XmlTextWriter.cs
- SlipBehavior.cs
- CDSsyncETWBCLProvider.cs
- ListBase.cs
- DefaultWorkflowSchedulerService.cs
- MsmqIntegrationOutputChannel.cs
- DataSpaceManager.cs
- DataServices.cs
- GlyphInfoList.cs
- ListViewItem.cs
- CultureNotFoundException.cs
- Transform3DGroup.cs
- CommunicationException.cs
- UnionCodeGroup.cs
- DataContext.cs
- TextEditorMouse.cs
- XXXInfos.cs
- Vector3DValueSerializer.cs
- Stylesheet.cs
- DoubleUtil.cs
- TreeIterator.cs
- DescriptionAttribute.cs
- WebRequestModulesSection.cs
- SEHException.cs
- ToolStripDropDownClosingEventArgs.cs
- Timer.cs
- FilterException.cs
- ViewValidator.cs
- HostingEnvironmentException.cs
- ReadOnlyNameValueCollection.cs
- CustomBindingElement.cs
- PropVariant.cs
- SplashScreen.cs
- PersonalizationProviderHelper.cs
- TransformConverter.cs
- WriteStateInfoBase.cs
- ItemContainerGenerator.cs
- ClaimSet.cs
- GridViewRow.cs
- CodeTypeConstructor.cs
- BulletedListEventArgs.cs
- _LazyAsyncResult.cs
- BrushValueSerializer.cs
- EmptyEnumerator.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SetStoryboardSpeedRatio.cs
- ServicePoint.cs
- OdbcConnectionFactory.cs
- SettingsPropertyIsReadOnlyException.cs
- _NTAuthentication.cs
- CodeLinePragma.cs
- StoragePropertyMapping.cs
- CodeExpressionCollection.cs
- XPathSelectionIterator.cs
- SqlFunctionAttribute.cs
- TriggerAction.cs
- CacheChildrenQuery.cs
- DeleteStoreRequest.cs
- GridViewRowPresenter.cs
- DataGridPagerStyle.cs
- cache.cs
- EpmSyndicationContentDeSerializer.cs
- TextLineResult.cs
- WorkflowServiceNamespace.cs