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
- NullPackagingPolicy.cs
- SQLGuid.cs
- ActiveXSite.cs
- NoResizeSelectionBorderGlyph.cs
- HideDisabledControlAdapter.cs
- CommandTreeTypeHelper.cs
- MSG.cs
- DataGridGeneralPage.cs
- CultureInfoConverter.cs
- UIPermission.cs
- RecognitionResult.cs
- ObjectView.cs
- ButtonAutomationPeer.cs
- ReverseInheritProperty.cs
- GenericWebPart.cs
- GridViewAutomationPeer.cs
- ConnectionsZone.cs
- BamlReader.cs
- DbSource.cs
- Object.cs
- BooleanStorage.cs
- UrlUtility.cs
- TabControlEvent.cs
- GuidelineSet.cs
- SQLRoleProvider.cs
- DataError.cs
- CompatibleComparer.cs
- Win32SafeHandles.cs
- StartFileNameEditor.cs
- PopupEventArgs.cs
- QilSortKey.cs
- DSASignatureDeformatter.cs
- TextParagraphCache.cs
- HandleRef.cs
- Crc32Helper.cs
- CommandDevice.cs
- RequestCacheValidator.cs
- Soap12FormatExtensions.cs
- XmlUTF8TextReader.cs
- CodeExpressionStatement.cs
- ProjectionNode.cs
- DocumentsTrace.cs
- MexHttpsBindingElement.cs
- AliasedSlot.cs
- CatalogZone.cs
- ImageList.cs
- RSATokenProvider.cs
- wmiprovider.cs
- XPathDocumentBuilder.cs
- ComponentCollection.cs
- CodeDomSerializerBase.cs
- WebCategoryAttribute.cs
- WindowPattern.cs
- SaveFileDialog.cs
- CollectionView.cs
- StoreItemCollection.cs
- XPathSingletonIterator.cs
- RelationshipType.cs
- DbProviderFactory.cs
- mediapermission.cs
- EncodingInfo.cs
- TextRunProperties.cs
- objectresult_tresulttype.cs
- ObjectSet.cs
- XmlnsCache.cs
- SqlTrackingWorkflowInstance.cs
- ProgressChangedEventArgs.cs
- DataGridAddNewRow.cs
- Size.cs
- ProfileInfo.cs
- NameValueConfigurationCollection.cs
- HttpContextWrapper.cs
- DatagridviewDisplayedBandsData.cs
- ProcessInputEventArgs.cs
- ProviderCommandInfoUtils.cs
- ImpersonationContext.cs
- WindowsRichEditRange.cs
- AsyncStreamReader.cs
- SHA512Managed.cs
- ListComponentEditor.cs
- OrderedDictionary.cs
- FunctionDescription.cs
- AddInIpcChannel.cs
- StackSpiller.Temps.cs
- Codec.cs
- ErrorEventArgs.cs
- FormViewCommandEventArgs.cs
- UrlPath.cs
- IfAction.cs
- RecommendedAsConfigurableAttribute.cs
- GC.cs
- GeometryHitTestResult.cs
- SortDescription.cs
- SiteIdentityPermission.cs
- SafeSystemMetrics.cs
- ValidatingReaderNodeData.cs
- BezierSegment.cs
- TextTreeRootNode.cs
- InternalConfigRoot.cs
- ConfigPathUtility.cs